From 1dbb7f58142989cc4b8cca8bc69c99eaf3b51759 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Thu, 26 Jul 2018 11:08:42 -0600 Subject: [PATCH] Disabling pointer events on Firefox, see https://github.com/phetsims/scenery/issues/837 --- js/input/BrowserEvents.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/input/BrowserEvents.js b/js/input/BrowserEvents.js index 1532473b0..db15c6e1f 100644 --- a/js/input/BrowserEvents.js +++ b/js/input/BrowserEvents.js @@ -12,6 +12,7 @@ define( function( require ) { var arrayRemove = require( 'PHET_CORE/arrayRemove' ); var BatchedDOMEvent = require( 'SCENERY/input/BatchedDOMEvent' ); var Features = require( 'SCENERY/util/Features' ); + var platform = require( 'PHET_CORE/platform' ); var scenery = require( 'SCENERY/scenery' ); // Sometimes we need to add a listener that does absolutely nothing @@ -125,8 +126,10 @@ define( function( require ) { /** * {boolean} - Whether pointer events in the format specified by the W3C specification are allowed. * @private + * + * NOTE: Pointer events are currently disabled for Firefox due to https://github.com/phetsims/scenery/issues/837. */ - canUsePointerEvents: !!( ( window.navigator && window.navigator.pointerEnabled ) || window.PointerEvent ), + canUsePointerEvents: !!( ( window.navigator && window.navigator.pointerEnabled ) || window.PointerEvent ) && !platform.firefox, /** * {boolean} - Whether pointer events in the format specified by the MS specification are allowed.