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]: Touch:gesture not working on Chromebook #10171

Open
7 tasks done
willPHPwork opened this issue Sep 22, 2024 · 1 comment
Open
7 tasks done

[Bug]: Touch:gesture not working on Chromebook #10171

willPHPwork opened this issue Sep 22, 2024 · 1 comment

Comments

@willPHPwork
Copy link

willPHPwork commented Sep 22, 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

na

Steps To Reproduce

  1. Go on Chromebook
  2. Open Chrome
  3. Try to detect touch:gesture with touch screen
  4. canvas.on('touch:gesture', function(e) { console.log(e); };

Try here: http://fabricjs.com/touch-events

Expected Behavior

Console.log shows event

Actual Behavior

Nothing

Error Message & Stack Trace

No response

@gloriousjob
Copy link
Contributor

As it says at the top of the page, it's using a custom build with touch support. You can try to make a custom build yourself with the gestures module. However, note that the main dev does not have a touchscreen device so don't expect much support (the old support stopped back in v4). The idea today is to integrate your own touch support or use another touch library on top. You can enable pointer events in Canvas and make your own implementation on top of that. http://fabricjs.com/docs/fabric.Canvas.html#enablePointerEvents

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