-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Single "click" throw activeSelection fire the mouse:out event (and change hoveredTarget value) on below objects #4218
Comments
I m ok with the PART 1 that looks a bug. PART 2 i cannot replicate. Clearing the console ( getting out of canvas ) while doing those things makes events change. i Cannot replicate if i stay inside the canvas. |
I think Part1 and Part2 come from the same problem. Can you try this PART 3, and tell me if you reproduce :
|
hi, I compiled a version of the lib with the latest source (commited 8 minutes ago), but it's a bad news, i still got the same problem (for part 1,2,3). |
I see... i guess they are all fixable in the way i started. i ll look better. |
wrote #4283. I have no idea if it fixes, for sure it influences the way we fire this event. |
@asturur : Tested with the beta7, the case 1 and case 3 are solved, still got the problem with case2. |
Hi,
I got a strange behaviors with the activeSelection and single click.
It seems like if you click (and don't move) on a space beetween object inside the activeSelection, a mouse:out event is fired, and if there is an object behind, it will change the hoverdTarget value.
=> If you move the cursor (so not a single click, but a click down+move) this behaviors doesn't happen.
=> If you group the activeSelection, this behaviors doesn't happen.
It looks like it's coming from the "findTarget > _fireOverOutEvents" function.
CASE 1 :
Steps :
=> Click beetween the 2 objects, the mouse:out is fired.
=> If you click and mouve, the event is not fired.
Expected behaviour : doesn't fire the event, and don't change the hovererTarget.
http://jsfiddle.net/eA3xH/176/
CASE 2 :
When you create a selection using the shift key, the mouse:out event is fired 2 times, while the mouse is still on the object (so it doesn't get out).
Steps :
=> A first mouse:out event is fired (it's OK because you get out of the red rect).
=> A second mouse:out event is fired in the console. It's not normal because the mouse is still in the object.
CASE 3 :
=> The selection is created, but the console show a "mouse:out" event fired.
The text was updated successfully, but these errors were encountered: