You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application provides a special HTML-input which can get its value from clicking on the map's canvas:
The user click on the input.
the input is focused and subscribes to the 'click' event from the map's canvas.
the user click on the map.
the input is filled with the lat-long coordinates from the click position.
when the input is blurred, it unsubscribes from the 'click' event from the map's canvas.
PR-8662 broke this behavior because it blurs my input before the 'click' event emits, since it does that on 'mousedown' which always come before 'click'.
I fully understand the reasoning behind the PR, but I think the behavior should be configurable.
I suggest making this behavior configurable by passing blurActiveElementOnInteraction via the ViewerConstructorOptions or via the CesiumWidget's options parameter. blurActiveElementOnInteraction should obviously default to true to preserve the current behavior.
Please tell me what you think is the best solution for this problem.
Thanks a lot
The text was updated successfully, but these errors were encountered:
yonzmeer
changed the title
Interacting with cesium map from Input Element
Interacting with the Map's canvas from an Input Element
Sep 4, 2020
This is not the behavior I mentioned.
The Input should get the values only after it was focused.
And it should not get values if the input is not the active element.
Hi,
My application provides a special HTML-input which can get its value from clicking on the map's canvas:
PR-8662 broke this behavior because it blurs my input before the 'click' event emits, since it does that on 'mousedown' which always come before 'click'.
I fully understand the reasoning behind the PR, but I think the behavior should be configurable.
I suggest making this behavior configurable by passing
blurActiveElementOnInteraction
via theViewerConstructorOptions
or via theCesiumWidget
'soptions
parameter.blurActiveElementOnInteraction
should obviously default totrue
to preserve the current behavior.Please tell me what you think is the best solution for this problem.
Thanks a lot
The text was updated successfully, but these errors were encountered: