It may have technically been a foul, but the ref made the right call in this context.
Why do we use the term "technically" when talking about rules in pool when there is no gray area in other sports? Either the rule was broken or it wasn't. I can't think of another scenario in sports where the ref steps in to prevent a competitor from breaking a rule which would incur a penalty.