Skip to content

Commit

Permalink
Disabling pointer events on Firefox, see #837
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Aug 10, 2018
1 parent 81fcd1a commit 1dbb7f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/input/BrowserEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 1dbb7f5

Please sign in to comment.