Skip to content
Advertisement

Fabric JS multiple object selection ignores movement isDisabled

I have set these following attributes to all of my objects on my Fabric JS canvas.

lockMovementX: isDisabled,
lockMovementY: isDisabled,
lockScalingX: isDisabled,
lockScalingY: isDisabled,
lockUniScaling: isDisabled,
lockRotation: isDisabled,

However, when I select multiple objects by holding the shift key, these objects get movable again, but as a group, any idea how I disable this possibility as well?

Advertisement

Answer

canvas.selection = false

In this way, you can disable the group selection but the objects will still be selectable.

Advertisement