Fabric.js: Disable dragging globally

Created on 26 May 2011  路  2Comments  路  Source: fabricjs/fabric.js

Is there a way to toggle whether selection/dragging is enabled?

All 2 comments

Not globally, no. You can disable dragging on each object individually via properties like lockMovementX, lockMovementY (or other actions like scaling or rotating via other properties). Take a look at https://github.com/kangax/fabric.js/wiki/Preventing-object-modification for more details.

There's no way to globally disable selection, but it should be easy to extend fabric to allow for that :)

Closing this, now that your other fix is in.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bevacqua picture bevacqua  路  4Comments

mlev picture mlev  路  3Comments

eugene-g13 picture eugene-g13  路  3Comments

amancqlsys picture amancqlsys  路  5Comments

eddieyangtx picture eddieyangtx  路  5Comments