jakubfiala / atrament

A small JS library for beautiful drawing and handwriting on the HTML Canvas.
http://fiala.space/atrament/demo
MIT License
1.55k stars 116 forks source link

Fill bucket doesn't work on mobile chrome #37

Closed rubenanton90 closed 6 years ago

rubenanton90 commented 6 years ago

Steps to reproduce:

Tested on Samsung Galaxy S7 and Google Nexus 5 devices.

(As a side note, I couldn't get the demo working at all on Firefox Mobile)

Thank you

jakubfiala commented 6 years ago

@rubenanton90 thanks for the issue! I don't currently have access to an android device but might get hold of a simulator to test.

Have you noticed any errors in the console?

rubenanton90 commented 6 years ago

Ok, I tested on both the demo site and the project I'm working on (Cordova/Ionic 3, using Chrome WebView) On the demo site, there's no error message and the bucket never works, debugger or not.

On my Ionic project, interestingly enough, if the chrome debugger is active on the device the fill bucket actually works! When it's working, the console complains about this, though:

imagen Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

Once you disconnect the debugger it fails again though.