Skip to content

Commit

Permalink
Use pointer events, when pointer events are available and don't mix t…
Browse files Browse the repository at this point in the history
…hem up with mouse events
  • Loading branch information
markuslerner committed Dec 1, 2022
1 parent 734efe2 commit 3b49c64
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 43 deletions.
9 changes: 6 additions & 3 deletions build/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ export declare class InteractionManager {
remove: (object: THREE.Object3D, childNames?: string[]) => void;
update: () => void;
checkIntersection: (object: InteractiveObject) => void;
onDocumentMouseMove: (mouseEvent: MouseEvent | PointerEvent) => void;
onDocumentMouseMove: (mouseEvent: MouseEvent) => void;
onDocumentPointerMove: (pointerEvent: PointerEvent) => void;
onTouchMove: (touchEvent: TouchEvent) => void;
onMouseClick: (mouseEvent: MouseEvent) => void;
onMouseDown: (mouseEvent: MouseEvent | PointerEvent) => void;
onMouseDown: (mouseEvent: MouseEvent) => void;
onPointerDown: (pointerEvent: PointerEvent) => void;
onTouchStart: (touchEvent: TouchEvent) => void;
onMouseUp: (mouseEvent: MouseEvent | PointerEvent) => void;
onMouseUp: (mouseEvent: MouseEvent) => void;
onPointerUp: (pointerEvent: PointerEvent) => void;
onTouchEnd: (touchEvent: TouchEvent) => void;
dispatch: (object: InteractiveObject, event: InteractiveEvent) => void;
mapPositionToPoint: (point: Vector2, x: number, y: number) => void;
Expand Down
2 changes: 1 addition & 1 deletion build/three.interactive.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3b49c64

Please sign in to comment.