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

[Feature] Event mouse:in #3384

Closed
samael205 opened this issue Oct 28, 2016 · 6 comments
Closed

[Feature] Event mouse:in #3384

samael205 opened this issue Oct 28, 2016 · 6 comments

Comments

@samael205
Copy link

Hi asturur,
I want to use in fabric the event "mouse: in" to know when I'm inside the canvas.
Currently works when the mouse leaves the canvas with mouse: out, but do not jump when you walk into the canvas, you Could implement a "mouse: in" to jump when you walk with the mouse on the canvas?.

regards

@asturur
Copy link
Member

asturur commented Oct 28, 2016

there is a mouse:over event, now i do not remember if it fires everytime the cursor is over the shape or just the first time

http://fabricjs.com/docs/fabric.Canvas.html

does mouse:over work?

@samael205
Copy link
Author

the mouse:over fires every time when the cursor is over a shape, but doesn't when the cursor is outer the canvas and enter inside canvas

@asturur
Copy link
Member

asturur commented Oct 28, 2016

ok this could be a nice addition. if we mouse:out on exit canvas, maybe we can mouse:over on canvas enter. i will take a look.

@asturur
Copy link
Member

asturur commented Nov 1, 2016

closed via #3389 @samael205 get a check if it is ok.

@asturur asturur closed this as completed Nov 1, 2016
@samael205
Copy link
Author

Ok, i will try soon, Many Thanks Guys @stefanhayden && @asturur

@samael205
Copy link
Author

Hi, works fine!.
Thank you so much guys.
Regards!

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

2 participants