Skip to content Skip to sidebar Skip to footer

How To Keep Image Behind Another Image When Moved?

Edit: Here I'm able to keep it in the back while selected but for some reason it's not dragable now. What might I be doing wrong? I have the ability to upload an image from my co

Solution 1:

There are some basic reading to do before starting to work with fabricjs in the docs.

http://fabricjs.com/docs/

1) the selected object jumps on top but you can disable it setting preserveObjectStacking: true on the canvas.

2) if you need an image to stay always on top, use canvas.overlayImage = fabric.Image this will give you a top image that do not react to selection that you can use to mask other objects

Post a Comment for "How To Keep Image Behind Another Image When Moved?"