handleEvent(event)
    {
        // add contacts from the event to the interaction
        if (event.changedTouches)
        {
            for (let i = 0; i < event.changedTouches.length; ++i)
            {
                const touch = event.changedTouches;
                const pointer = this._getPointer(touch);
                const worldCoords = this.convertClientToWorld(touch.clientX, touch.clientY, tempCoords);
                const hitObject = this.hitTest(worldCoords.x, worldCoords.y);

                pointer[Pointer.EVENT_CALL_MAP[event.type]](touch, hitObject, worldCoords.x, worldCoords.y);
            }
        }
        else
        {
            const pointer = this._getPointer(event);
            const worldCoords = this.convertClientToWorld(event.clientX, event.clientY, tempCoords);
            const hitObject = this.hitTest(worldCoords.x, worldCoords.y);

            pointer[Pointer.EVENT_CALL_MAP[event.type]](event, hitObject, worldCoords.x, worldCoords.y);
        }
    }
/**
     * Handles an interaction event, usually this is passed a DOM Event.
     *
     * @param {Event} event - The start event.
     */
Handles an interaction event, usually this is passed a DOM Event.
@param {Event} event - The start event.
Handles an interaction event usually this is passed a DOM Event . @param { Event } event - The start event .
handleEvent(event)
    {
        if (event.changedTouches)
        {
            for (let i = 0; i < event.changedTouches.length; ++i)
            {
                const touch = event.changedTouches;
                const pointer = this._getPointer(touch);
                const worldCoords = this.convertClientToWorld(touch.clientX, touch.clientY, tempCoords);
                const hitObject = this.hitTest(worldCoords.x, worldCoords.y);
                pointer[Pointer.EVENT_CALL_MAP[event.type]](touch, hitObject, worldCoords.x, worldCoords.y);
            }
        }
        else
        {
            const pointer = this._getPointer(event);
            const worldCoords = this.convertClientToWorld(event.clientX, event.clientY, tempCoords);
            const hitObject = this.hitTest(worldCoords.x, worldCoords.y);
            pointer[Pointer.EVENT_CALL_MAP[event.type]](event, hitObject, worldCoords.x, worldCoords.y);
        }
    }
handleEvent ( event ) { if ( event . changedTouches ) { for ( let i = 0 ; i < event . changedTouches . length ; ++ i ) { const touch = event . changedTouches ; const pointer = this . _getPointer ( touch ) ; const worldCoords = this . convertClientToWorld ( touch . clientX , touch . clientY , tempCoords ) ; const hitObject = this . hitTest ( worldCoords . x , worldCoords . y ) ; pointer [ Pointer . EVENT_CALL_MAP [ event . type ] ] ( touch , hitObject , worldCoords . x , worldCoords . y ) ; } } else { const pointer = this . _getPointer ( event ) ; const worldCoords = this . convertClientToWorld ( event . clientX , event . clientY , tempCoords ) ; const hitObject = this . hitTest ( worldCoords . x , worldCoords . y ) ; pointer [ Pointer . EVENT_CALL_MAP [ event . type ] ] ( event , hitObject , worldCoords . x , worldCoords . y ) ; } }
Handles an interaction event, usually this is passed a DOM Event.
Handles an interaction event usually this is passed a DOM Event .
// add contacts from the event to the interaction