score:2

http://fabricjs.com/docs/fabric.Canvas.html#preserveObjectStacking

Indicates whether objects should remain in current stack position when selected. When false objects are brought to top and rendered as part of the selection group

Set your canvas.preserveObjectStacking to true (it's false by default).

It will prevent the selection from bringing objects to the front, but keep in mind that this will rely on the order in which you've added your objects.


Related Query

More Query from same tag