Skip to content

Don't handle wheel event coming from other elements (e.g., modal)#512

Open
bcazur wants to merge 1 commit into
pixijs-userland:masterfrom
bcazur:master
Open

Don't handle wheel event coming from other elements (e.g., modal)#512
bcazur wants to merge 1 commit into
pixijs-userland:masterfrom
bcazur:master

Conversation

@bcazur

@bcazur bcazur commented Dec 26, 2024

Copy link
Copy Markdown

Checking if the event target is the viewport's dom element

Comment thread .gitignore
dist No newline at end of file
dist
package-lock.json
yarn.lock No newline at end of file

Copy link
Copy Markdown
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?

Comment thread src/InputManager.ts
if (this.viewport.options.events?.domElement !== event.target)
{
return;
}

Copy link
Copy Markdown
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants