Whenever I select an item in the canvas , it is automatically brought to the top leaving all the objects behind. Is there any way I can stop this from happening?
Set the "preserveObjectStacking" property of the fabricjs canvas to true to stop the bringtofront on selected objects.
var canvas = new fabric.Canvas('canvas');
canvas.preserveObjectStacking = true;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With