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

semiadam picture semiadam  路  3Comments

bhaskardas9475 picture bhaskardas9475  路  4Comments

amancqlsys picture amancqlsys  路  5Comments

semiadam picture semiadam  路  3Comments

semiadam picture semiadam  路  3Comments