Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ node_modules
.DS_Store
compile
js
dist
dist
package-lock.json
yarn.lock
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please revert this change?

6 changes: 6 additions & 0 deletions src/InputManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ export class InputManager
return;
}

// do not handle events coming from other elements
if (this.viewport.options.events?.domElement !== event.target)
{
return;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, can you please explain some scenarios when this would be helpful?


// only handle wheel events where the mouse is over the viewport
const point = this.viewport.toLocal(this.getPointerPosition(event));

Expand Down
Loading