-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
hoverCursor on selectable:false #1392
Comments
This is as intended. If an object is unselectable, what's the point of showing cursor if you can't select it? |
For UI-Elements, like simple Buttons: |
I Agree. I also made buttons that should not be selectable but still show a pointer cursor. |
I have selectable = false and objets should link to another page, so I need to set hoverCursor = pointer on a mouseover event. |
I Agree. I also made buttons ! |
yes non selectable but clickable events should be considered as an option |
It looks like this was reverted without any discussion in issue #3634. I have the same reason for needing this feature as other commenters on this issue - namely creating "buttons" on a fabric.js canvas that should show a pointer icon on hover, but should not be selectable/editable. Perhaps this should be made an option, since it seems both behaviours are desirable in different circumstances? |
i think there is a way to change cursor on hover with selectable false. let me check. |
@asturur I'm seeing this as well - it does not work in this example:
Setting |
Same for me. Only setting selectable to true, which is not what I need allows me to change the cursor type... |
There is a workaround to have a cursor pointer and not interactive element with those props:
|
Seems a bit presumptuous to dictate what cursors people can can't use in certain situations. No Cursor for you! With great power comes great responsibility. yada yada. Let us choose to make bad design choices if we want to. You're not the boss of my cursor. I am. |
@mt404 i m not sure what was the message you wanted to give to us. I may have done bad decisions building features for fabricJS. This issues is from 2017 and i m not sure what is the current situation. The whole controls/cursors are under rewriting with a more permissive model |
As a follow-up to tscislo-lingaro's excellent solution: if you would like to have the default hoverCursor back just set hoverCursor: '' (i.e. empty string) |
Hi, |
The objects needs either to be skipped or not skipped, won't change that much. |
Yeah, I found that option while finding solution, it works well. |
When setting 'selectable:false' to an object, the property hoverCursor doesn't have anymore influence. Is that intended? Mouseover-Events are still fired. Seems illogical for me (in most cases, you won't need a hoverCursor on non-selectable elements, but at least you could have the choice).
http://jsfiddle.net/4qcAL/
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: