Fabric.js: Not able to select object which behind not selecteable object

Created on 7 Apr 2017  路  6Comments  路  Source: fabricjs/fabric.js

Hi,

I am not able to select object which is behind another object which is selecteable=false.
i have added two rect on same position. Top rect selectable property is false still i m not select another object by mouse down.
http://jsfiddle.net/vijaygurjar/msodah0r/

needs_confirmation

Most helpful comment

Hi,

You need to add "evented: false" to have the ability to click "throw" the unselectable object.

http://jsfiddle.net/msodah0r/1/

Is that what you are trying to do ?

All 6 comments

Hi,

You need to add "evented: false" to have the ability to click "throw" the unselectable object.

http://jsfiddle.net/msodah0r/1/

Is that what you are trying to do ?

Thanks ncou,

is it possible by other way?

is really a documentation problem
I see the utility of having an object unselectable but still firing events ( mouseup, mousedown ) and a way to make it transparent to mouse actions.

I don't know another way to do this. Why do you ask ? does the "evented:false" doesn't fit your needs ?

yes it is not fulfill my requirement, I need to stop listening only mouse events from particular object only

set that object as evented = false.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bhaskardas9475 picture bhaskardas9475  路  4Comments

amancqlsys picture amancqlsys  路  5Comments

Vivek-KT picture Vivek-KT  路  3Comments

guettli picture guettli  路  4Comments

zhangzhzh picture zhangzhzh  路  4Comments