Gaps in `onMouseMove` on a Layer
See original GitHub issueIt seems that if you put a onMouseMove
(or attach an event listener using a ref), once in a while there are gaps (~1s) between the event listener calls. It works well for a moment, and then stops invoking the listener for a while, just to go back to normal again.
This doesn’t happen when the event listener is placed directly on Stage
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Developers - Gaps in `onMouseMove` on a Layer - - Bountysource
It seems that if you put a onMouseMove (or attach an event listener using a ref), once in a while there are gaps...
Read more >mousemove with two layers on top of each other (overlapping)
Creating external "event manager" which will track whether I'm hovering the city and if is so will remove mousemove event from country-layer - ......
Read more >Mousemove on Geoserver Tile with Leaflet
Code works nearly fine, but there is a vertical gap between the cursor position, and the layer retrieved by GetFeatureInfo request. This ...
Read more >UUserWidget::OnMouseMove - Unreal Engine Documentation
The system calls this method to notify the widget that a mouse moved within it. This event is bubbled. Returns. Whether the event...
Read more >Element: mousemove event - Web APIs | MDN
Returns the vertical coordinate of the event relative to the current layer. MouseEvent.metaKey Read only. Returns true if the meta key was down ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DarkBitz for you use case, you can try to use
Konva.capturePointerEventsEnabled = true
. Orshape.setPointerCapture(stage.getPointerPosition().id);
Closing the issue for now. If any questions or issues. Please provide a demo.
@lavrton So my problem was simply that the mouse was moved out of the rectangle and then released. Then the event was not applied to the rectangle. Seems to be a desired behavior.