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

[Bug]: Mobile Devices Unable to Trigger dblclick Event #10154

Open
7 tasks done
07ke opened this issue Sep 14, 2024 · 2 comments
Open
7 tasks done

[Bug]: Mobile Devices Unable to Trigger dblclick Event #10154

07ke opened this issue Sep 14, 2024 · 2 comments

Comments

@07ke
Copy link

07ke commented Sep 14, 2024

CheckList

  • I agree to follow this project's Code of Conduct
  • I have read and followed the Contributing Guide
  • I have read and followed the Issue Tracker Guide
  • I have searched and referenced existing issues and discussions
  • I am filing a BUG report.
  • I have managed to reproduce the bug after upgrading to the latest version
  • I have created an accurate and minimal reproduction

Version

6.0.2

In What environments are you experiencing the problem?

Chrome

Node Version (if applicable)

None

Link To Reproduction

null

Steps To Reproduce

  1. Open the application on a mobile device.
  2. Attempt to perform a double-tap on an element that should trigger the dblclick event.
  3. Observe that the event is not fired and no associated handlers are executed.

Expected Behavior

On mobile devices, performing a double-tap should trigger the dblclick event and execute the associated event handlers.

Actual Behavior

The dblclick event is not triggered on mobile devices, and the event handlers do not execute.

Error Message & Stack Trace

We are experiencing an issue where the dblclick event is not being triggered on mobile devices. The dblclick event and the associated handlers such as mouse:dblclick and mousedblclick are not functioning as expected on mobile platforms.

canvas.on("mouse:dblclick", a);
canvas.upperCanvasEl.addEventListener("dblclick", a);
canvas.upperCanvasEl.addEventListener("mousedblclick", a);
@asturur
Copy link
Member

asturur commented Sep 15, 2024

Do you know if it was working before on older version of fabricJS?
Are you able to trigger a NATIVE JS dblclick event on a div?

@07ke
Copy link
Author

07ke commented Sep 18, 2024

Do you know if it was working before on older version of fabricJS? Are you able to trigger a NATIVE JS dblclick event on a div?

div dblclick ✔
no fabric canvas dblclick ✔
fabric mouse:dblclick ✘
fabric canvas dblclick ✘

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