Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot select object below an selectable=false object with a single click, but group select works. #5660

Closed
thotar opened this issue Apr 29, 2019 · 3 comments

Comments

@thotar
Copy link

thotar commented Apr 29, 2019

Between version 2.4.0 and 2.4.1 - Selecting an object below an un-selectable object behavior changed.

This change changed the behavior:
#5259 (comment)

The jsfiddles are the same except the fabric version is different.

Version

2.4.1

Test Case

https://jsfiddle.net/v8kafdL5/ - v 2.4.1
https://jsfiddle.net/qgkt2fLw/ - v 2.4.0

Information about environment

Which browsers?
At least Chrome

Steps to reproduce

Click on the Triangle below the circle.

Expected Behavior

Triangle is selected.

Actual Behavior

Not selected.

@johnsoncheg
Copy link

maybe u can try this.canvas.bringToFront() first.

@jessemtcarlton
Copy link

I think selectable disables selection but absorbs the events. You need to set evented:false on the circle if you want it to be a static overlay and be able to select items below it.

@asturur
Copy link
Member

asturur commented Sep 24, 2019

the change was half intentional, i have no idea why this issue was still open.
Yes selectable means that you cannot select it, not that is transparent to selection process.
Interact with the events, but refuses to be selected.

@asturur asturur closed this as completed Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants