Skip to content

Commit

Permalink
remove unused onTouchStart onTouchEnd functions
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Oct 8, 2022
1 parent beb98fe commit 7814738
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/lib/raycaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,6 @@ export function initRaycaster(inspector) {
onUpPosition.fromArray(array);
}

function onTouchStart(event) {
const touch = event.changedTouches[0];
const array = getMousePosition(
inspector.container,
touch.clientX,
touch.clientY
);
onDownPosition.fromArray(array);
}

function onTouchEnd(event) {
const touch = event.changedTouches[0];
const array = getMousePosition(
inspector.container,
touch.clientX,
touch.clientY
);
onUpPosition.fromArray(array);
}

/**
* Focus on double click.
*/
Expand Down

0 comments on commit 7814738

Please sign in to comment.