Fabric.js: Click-through a layer

Created on 28 Jul 2014  路  4Comments  路  Source: fabricjs/fabric.js

screen shot 2014-07-28 at 15 06 30

I should be able to click through a transparent layer that has selectable: false, right?

Most helpful comment

Use evented: false

All 4 comments

Selectable false blocks propagation of the click to objects below it. So if you are using an object as a 'layer' with selectable: false then you wont be able to click objects below it.

Whilst it looks like it is working as intended, it would be nice to have the ability to click through a "layer" and select any object underneath. Maybe a property to signify this?

Use evented: false

Worked great thanks @kangax

Was this page helpful?
0 / 5 - 0 ratings

Related issues

semiadam picture semiadam  路  3Comments

f987002856 picture f987002856  路  3Comments

Vivek-KT picture Vivek-KT  路  3Comments

bhaskardas9475 picture bhaskardas9475  路  4Comments

urcoder picture urcoder  路  5Comments