-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Cesium captures all mouse and touch events which doesn't bubble up document.activeElement
#10185
Comments
Hi @ggetz, yes this does sound very similar. |
I see, thanks @cmcleese. To help get to the root of the change in behavior, would you be able to track down in what version this changed? If you're familiar with git, git bisect is a helpful tool for finding the exact commit in which things changed. |
Hi. My idea was to make this behavior configurable via the ViewerConstructorOptions - so the blurActiveElement function will not be passed for the addEventListener. I can open such pr if you think this is an acceptable solution. |
I have not been able to come up with any alternative in my testing. |
Thanks for the interest in contributing @yonzmeer. That should be fine so long as the default behavior remains the same when this option is not provided. |
Opened one. Would love some help with it, especially with my naming. |
All mouse and touch events are capture during viewer init.
The focus events do occur when trying to change focus from a different non Cesium UI element to Cesium canvas.
Basically if a NON Cesium UI element has focus and we try to unfocus from that element by clicking on the Cesium canvas, the unfocus event cannot work correctly.
Cesium is capturing these events and thus not bubbling to allow for changing of the
document.activeElement
EX: https://codesandbox.io/s/test-quasar-cesium-vue3-edjxls?file=/src/index.template.html
Oddly this doesn't appear to be an issue with Firefox. Only Chromium browsers.
This should be consistent with all browsers.
See example above in both browsers to notice the issue.
Browser: Firefox, Chrome
Operating System: windows
The text was updated successfully, but these errors were encountered: