Skip to content

Commit

Permalink
Removing pointer type shortcuts, see phetsims/scenery#724
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jan 17, 2018
1 parent 1188c46 commit bcd4fd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ScreenButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ define( function( require ) {
var ScreenButtonIO = require( 'JOIST/ScreenButtonIO' );
var Shape = require( 'KITE/Shape' );
var Text = require( 'SCENERY/nodes/Text' );
var Touch = require( 'SCENERY/input/Touch' );
var Util = require( 'DOT/Util' );
var VBox = require( 'SCENERY/nodes/VBox' );

Expand Down Expand Up @@ -134,7 +135,7 @@ define( function( require ) {
// you swipe over to the next thumbnail, that one would grow.
this.addInputListener( {
over: function( event ) {
if ( event.pointer.isTouch ) {
if ( event.pointer instanceof Touch ) {
sim.screenIndexProperty.value = index;
}
}
Expand Down

0 comments on commit bcd4fd3

Please sign in to comment.