-
-
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
Issue with GetPointer and Mozilla Firefox #4029
Comments
so this thing is not new. let me check once again.... |
Just a small update... |
ok so i have to leave a comment in the code, since every time i check it and everytime i finish on the same mozilla link https://developer.mozilla.org/en-US/docs/Web/API/Window/event so window.event is a MS thing that chrome for some reason adopted. https://jsfiddle.net/m4fs7okd/1/ this is the correct way of using getPointer in custom code. I would say this is not a bug. |
Errr sorry @asturur I tried the fiddle on Firefox and the problem persists. Did I miss something or did u mean that there is no solution to this issue on Firefox? Thank you. |
my laziness made me answer too fast. sorry. |
Alright @asturur |
#4061 here it is! Use it to call |
Ok, i see the change... Just to try and make sure i got this right (sorry, i'm not very knowledgeable with github), this involves a change to the modified event of the canvas (on the fabricjs code) to pass the event, so that we can use it on the getPointer, correct? If so, when can I expect the new version to be available for download (been using the minified dist version so far)? |
i ll try to push out 1.7.16 today. thanks for insisting, i would have archived this easily. |
My pleasure, @asturur I will wait for the new version. Keep up the great work. |
1.7.16 is out. |
New version "installed" and change to the getPointer implemented. Thank you very much. |
Hello every1.
First of all, once again, congrats and kuddos on a great job. FabricJS is an amazing tool.
Now onwards to the issue at hand.
On a project of mine, I have a function that is responsible to detecting for intersections between objects and if the mouse, when the click is let go, was on top of the intersecting image.
For that, i have used the getPointer function of the canvas.
All was well until I recently tested my project in various browsers and discovered that they were working on all except Mozilla Firefox.
On Firefox, the getPointer function gives out a "event is undefined" (fabric.js:2168:9) error on the console and the image gets "glued" to the cursor.
Here's a simple fiddle that you can run on Firefox and confirm the issue:
https://jsfiddle.net/m4fs7okd/
My Firefox is up to date to the latest version (54.0).
The version of FabricJS is the most recent one (1.17.13).
Hope this helps...
The text was updated successfully, but these errors were encountered: