You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A helper to easily get the real position of the mouse in the Three.js canvas to work with tools like the [raycaster](https://threejs.org/docs/#api/en/core/Raycaster), even if it has been transformed through CSS or doesn't occupy the whole screen.
6
6
*/
7
7
exportclassMouseimplementsDisposable{
8
-
private_event?: MouseEvent;
8
+
private_event?: MouseEvent|TouchEvent;
9
9
private_position=newTHREE.Vector2();
10
10
11
11
/** {@link Disposable.onDisposed} */
@@ -34,23 +34,31 @@ export class Mouse implements Disposable {
0 commit comments