import '../../../globals.js';
import { Pointer, scenery } from '../imports.js';
export default class Touch extends Pointer {
    constructor(id, point, event) {
        super(point, 'touch'); // true: touches always start in the down state
        this.id = id;
        sceneryLog && sceneryLog.Pointer && sceneryLog.Pointer(`Created ${this.toString()}`);
    }
    /**
     * Sets information in this Touch for a given touch move. (scenery-internal)
     *
     * @returns - Whether the point changed
     */
    move(point) {
        const pointChanged = this.hasPointChanged(point);
        this.point = point;
        return pointChanged;
    }
    /**
     * Returns an improved string representation of this object.
     */
    toString() {
        return `Touch#${this.id}`;
    }
    isTouchLike() {
        return true;
    }
}
scenery.register('Touch', Touch);
//# sourceMappingURL=Touch.js.map