edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Stylus input looks pixelated on firefox #167

Open ianbrody opened 3 years ago

ianbrody commented 3 years ago

This issue is best illustrated by an example: https://cocreate.[domain]/r/oCiJCsiDj9S4PGyd2 The drawings on the first line were made with a stylus on firefox. The second line of drawings was made using chromium; it is much smoother than the first one. The third and fourth lines were made using a mouse on firefox and chromium, respectively. I can't notice much of a difference between these.

I'm using a Dell premium active pen on a Dell XPS 13 7390 2 in 1 laptop, running arch linux and awesome wm.

edemaine commented 3 years ago

This seems to be the following Firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1487509

The workaround seems to be to set dom.w3c_pointer_events.dispatch_by_pointer_messages to true in about:config. I just tried, and this fixed the problem for me on a Wacom tablet (although touch events seem to be broken either way).

ianbrody commented 3 years ago

That didn't seem to change anything for me, unfortunately. As a side note, I tried this on windows on firefox and there, writing with the stylus didn't work at all until after changing that about:config value. (Otherwise, the stylus would only produce a single dot at the beginning of a stroke.)

edemaine commented 3 years ago

Ah, what operating system are you using? That seems relevant. I was using Windows, so at least we have the same behavior there.

Probably your issue is one of the many Firefox pointer event issues... I'm disappointed to see how weak Firefox's support is for pointer events... I'd strongly recommend using Cocreate with Chrome when using a pen.

ianbrody commented 3 years ago

Got it, there seem to be a lot of issues with firefox. For the record I'm using Arch Linux with awesome wm (under X11).