Rounding mouse click location

This is an example from this thread Selecting images on screen using mouse in builder view using .isPressedIn(), instead of .contains(). It doesn’t care how the location of the stimuli is determined: