Skip to content

MultiListenerPress

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery/blob/main/js/listeners/MultiListenerPress.ts for the most up-to-date information.

Overview

A logical "press" for the MultiListener, capturing information when a Pointer goes down on the screen.

@author Jesse Greenberg (PhET Interactive Simulations) @author Jonathan Olson (PhET Interactive Simulations)

Class MultiListenerPress

import { MultiListenerPress } from 'scenerystack/scenery';

Constructor

new MultiListenerPress( pointer : Pointer, trail : Trail )

Instance Methods

recomputeLocalPoint()

Compute the local point for this Press, which is the local point for the leaf Node of this Press's Trail.

Instance Properties

pointer : Pointer

trail : Trail

interrupted : boolean

initialPoint : Vector2

(readonly)

down point for the new press, in the global coordinate frame

localPoint : Vector2 | null

point for the new press, in the local coordinate frame of the leaf Node of the Trail

Source Code

See the source for MultiListenerPress.ts in the scenery repository.