Skip to content

Conversation

bcazur
Copy link

@bcazur bcazur commented Dec 26, 2024

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

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?

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?

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