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

Standalone DrawerJS using API touch pen issue #63

Open
brianm85 opened this issue Dec 7, 2020 · 3 comments
Open

Standalone DrawerJS using API touch pen issue #63

brianm85 opened this issue Dec 7, 2020 · 3 comments

Comments

@brianm85
Copy link

brianm85 commented Dec 7, 2020

Using the API example, it doesn't allow the pen from a touch device to draw, only a mouse. Am I missing a config setting or is it designed this way

@artmediaweb
Copy link

artmediaweb commented Jan 19, 2021

Same question...
EDIT : i think it's a question of coordinates captured on touch : if i put the canvas div "up" on the body (by hidding previous divs in the api exemple page), it works...

@MatthewHolmes
Copy link

Anyone had any luck correcting this? Seems to be an issue on the iPad Pro using an Apple Pencil.

@hawelkam
Copy link

I know the issue is old but maybe this will help you. Had the same issue with pencils on Windows Tablets.
It seems to be an issue with fabric. You need to add one check in fabric.1.7.22.min.js for isTouchSupported - navigator.maxTouchPoints > 1

fabric.isTouchSupported="ontouchstart" in fabric.document.documentElement||navigator.maxTouchPoints>1;

Remember to save without formatting so the minified file stays minified.

This helped us in our app, hopefully it will work for you as well ;)

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

4 participants