When I select a feature, move my cursor outside the map (still within the canvas) and trigger a mouse event such as scrolling down, the selected feature moves outside of the map. This always happens despite setting the wrapX property of both the map and vector sources to false.
I've created this jsFiddle to demonstrate the problem. To reproduce the issue:
Is there a way to remove this behavior? I'd like to make the feature stay on the map regardless of where mouse events are triggered.
أكثر...
I've created this jsFiddle to demonstrate the problem. To reproduce the issue:
- Click on the blue circle on the map to select it
- Move your cursor outside the map square (left or right)
- Scroll up or down
Is there a way to remove this behavior? I'd like to make the feature stay on the map regardless of where mouse events are triggered.
أكثر...