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
I have a layer with shapes inside. I have to connect shapes between each other. I capture mousedown, mouseup and mousemove events. Once user clicks and holds LMB, I add connector line and two anchor points, then user moves cursor and this line extends to the cursor position.
It's all good until my cursor within bounds of any shape inside of layer, once it gets outside of bounds of first selected shape, mouse events stop coming and mouseleave event is sent.
Expected:
Mouse events should be dispatched within bounds of layer regardless intersection with any child objects. My layer has dimensions set so its bounds are certain.
mouseleave event dispatched when mouse leaves bounds of layer not when it's on layer itself.
Workaround:
Put Kinetic.Rect in background of layer to keep receiving events.
Hi,
I have a layer with shapes inside. I have to connect shapes between each other. I capture mousedown, mouseup and mousemove events. Once user clicks and holds LMB, I add connector line and two anchor points, then user moves cursor and this line extends to the cursor position.
It's all good until my cursor within bounds of any shape inside of layer, once it gets outside of bounds of first selected shape, mouse events stop coming and mouseleave event is sent.
Expected:
Workaround:
Put
Kinetic.Rect
in background of layer to keep receiving events.JSFiddle:
http://jsfiddle.net/pronebird/34zxokyw/
The text was updated successfully, but these errors were encountered: