Skip to content

Commit

Permalink
Fix pointer tracker setHoverEvent method (#505)
Browse files Browse the repository at this point in the history
* handle all canvas sizes

* improve memory usage and use a constant domElement

* fix setHoverEvent
  • Loading branch information
AlaricBaraou authored Mar 12, 2024
1 parent 50f8ae7 commit 9c9f8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/three/controls/PointerTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class PointerTracker {

if ( e.pointerType === 'mouse' ) {

this.hoverPosition.set( e.clientX, e.clientY );
this.getAdjustedPointer( e, this.hoverPosition );
this.hoverSet = true;

}
Expand Down

0 comments on commit 9c9f8db

Please sign in to comment.