Don't validate bounds repeatedly in the hit-testing inner loop