import '../../../globals.js';
// Copyright 2023-2024, University of Colorado Boulder
/**
 * 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)
 */
import { scenery } from '../imports.js';
export default class MultiListenerPress {
    constructor(pointer, trail) {
        this.pointer = pointer;
        this.trail = trail;
        this.interrupted = false;
        this.initialPoint = pointer.point;
        this.localPoint = null;
        this.recomputeLocalPoint();
    }
    /**
     * Compute the local point for this Press, which is the local point for the leaf Node of this Press's Trail.
     */
    recomputeLocalPoint() {
        this.localPoint = this.trail.globalToLocalPoint(this.pointer.point);
    }
    /**
     * The parent point of this press, relative to the leaf Node of this Press's Trail.
     */
    get targetPoint() {
        return this.trail.globalToParentPoint(this.pointer.point);
    }
}
scenery.register('MultiListenerPress', MultiListenerPress);
//# sourceMappingURL=MultiListenerPress.js.map