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
Canvas is here. I map array with images and draw them. I click on Image and set active image, then I have PanelTools, where I have buttons like 'delete', 'clone', 'moveUp', 'moveDown' etc ... And this last two buttons not work like have. When I click on Image and then on button 'moveUp' or 'moveDown', image is pushing up and down (like I expected and should), but when I click back on canvas, images drop to their positions like were before.
You are moving Konva nodes manually, but your render function describe them in the old order, so react-konva reorder them back (as in render function). So you don't need to move nodes manually, you just need to change the order in your state and rerender.
Hello, I have a problem with this functions ( moveUp and moveDown ).
Here is my workarround.
When I mouseDown on Group with Image, I set a active image.
Canvas is here. I map array with images and draw them. I click on Image and set active image, then I have PanelTools, where I have buttons like 'delete', 'clone', 'moveUp', 'moveDown' etc ... And this last two buttons not work like have. When I click on Image and then on button 'moveUp' or 'moveDown', image is pushing up and down (like I expected and should), but when I click back on canvas, images drop to their positions like were before.
Thanks for any advices.
The text was updated successfully, but these errors were encountered: