简体   繁体   中英

Dragging bottom layer only in kineticjs

I am trying to find a way to drag and reposition an image that is below another (larger) image. So basically I want to make the top image completely ignored by the framework. I have tried making it non-draggable, but it still covers up the bottom image and prevents me from resizing it. Anyone had luck with this?

If both images are in the same layer, then you can change the z-index and move the image to the front on click. ( .moveToTop())

If not, then you have to change the z-index of the layer on click, so that the larger image does not cover the smaller.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM