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
{{ message }}
Repository navigation
Kinetic JS dragging a layer causes shapes on another layer to stop responding to drag (kinetic-v4.4.3.min.js) #404
There is a problem in 4.4.3 where dragging a layer can interfere with shapes on another layer. The problem seems to be when setAttrs() is called on the other layer with {x:this.getX(), y:this.getY()} to try and keep the layers aligned.
Shapes on that layer which were draggable lose the ability to be dragged. It seems that creating a new draggable shape after that restores the desired behaviour.
I think I have a similar problem. I noticed that dragging a layer sometimes cleared hit canvas for other shape not related at all. I made a hack to draw that hit canvas when dragging ends, but it would be nice to get a proper fix for this. This was introduced in 4.4.0, it's not reproducable with 4.3.3
another update on this thread: I'm actually in the process of putting together the 4.7.0 release. This bug is still present. It will be fixed along with some other hit graph enhancements in v4.7.1.
Activity
plrdev commentedon Apr 24, 2013
I think I have a similar problem. I noticed that dragging a layer sometimes cleared hit canvas for other shape not related at all. I made a hack to draw that hit canvas when dragging ends, but it would be nice to get a proper fix for this. This was introduced in 4.4.0, it's not reproducable with 4.3.3
robokozo commentedon May 29, 2013
@eduplus Thanks for mentioning which version it wasn't reproducible in.
I've experienced something similar in 4.5.2 so I had to revert to 4.3.3 in the mean time.
ericdrowell commentedon May 29, 2013
will look at this as soon as I get the chance, thanks for posting :)
pamba commentedon Jul 17, 2013
I am using 4.3.3 due this issue as well and would love use the latest version. :(
markcallen commentedon Aug 26, 2013
Having the same problem with large number of layers in 4.6.0, have reverted to 4.3.3 as well.
ericdrowell commentedon Aug 26, 2013
I've promoted this ticket in priority. I'll try to get this fixed for v4.6.1
ericdrowell commentedon Sep 14, 2013
@edplus you are correct, I demonstrated the hit canvas issue by forking the jsfiddle here:
http://jsfiddle.net/37pG3/
ericdrowell commentedon Sep 14, 2013
another update on this thread: I'm actually in the process of putting together the 4.7.0 release. This bug is still present. It will be fixed along with some other hit graph enhancements in v4.7.1.
plrdev commentedon Nov 28, 2013
We are still having this happen on v.4.7.4 - any updates on this?
lavrton commentedon Mar 3, 2014
Hit canvas is not updating while dragging (for performance reasons).
As a workaround you may draw layer on dragend.
Updated demo: http://jsfiddle.net/lavrton/37pG3/1/
lavrton commentedon Jan 22, 2015
Fixed at fork. https://github.com/lavrton/KineticJS