How can I disable the click-drag multi selection in fabricjs?
In this image you can see the selection area with a red border:
I want to prevent that kind of selection, but still allow single object selections.
There is a property on fabric.Canvas
objects called selection
which controls this group-selection behavior.
var canvas = new fabric.Canvas('c', {width: 500, height: 500, selection: false});
//Or quite simply:
canvas.selection = false;
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.