Prevent pointer events registering on invisible overlay
Fix FireFox mouse event compatibility issues