don't check mouse events if mouse isn't over the target element