Skip to content

DownUpListener

Overview

Basic down/up pointer handling for a Node, so that it's easy to handle buttons

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class DownUpListener

@deprecated - use PressListener instead

import { DownUpListener } from 'scenerystack/scenery';

Constructor

new DownUpListener( options )

Instance Methods

buttonDown( event )

@private

@param {SceneryEvent} event

buttonUp( event )

@private

@param {SceneryEvent} event

interrupt()

Called when input is interrupted on this listener, see https://github.com/phetsims/scenery/issues/218 @public

Source Code

See the source for DownUpListener.js in the scenery repository.