Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GUI] Block pointer events to scene when pointer is captured #12400

Merged

Conversation

darraghjburke
Copy link
Contributor

When a pointer is captured (for example, if the user is dragging a scrollbar), pointer events should not be passed to the scene.

This matches the behavior of setPointerCapture() on the web, which forces all pointer events to fire on a particular element.

Resolves forum issue: https://forum.babylonjs.com/t/scrollbar-and-pointerblocker/28732
See playground: #XNY77K#3

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

Snapshot stored with reference name:
refs/pull/12400/merge

Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/12400/merge/index.html

To test a playground add it to the URL, for example:

https://babylonsnapshots.z22.web.core.windows.net/refs/pull/12400/merge/index.html#WGZLGJ#4600

To test the snapshot in the playground itself use (for example):

https://playground.babylonjs.com/?snapshot=refs/pull/12400/merge#BCU1XR#0

@deltakosh deltakosh merged commit 1a4125f into BabylonJS:master Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants