cocreate icon indicating copy to clipboard operation
cocreate copied to clipboard

Stylus input looks pixelated on firefox

Open ianbrody opened this issue 3 years ago • 4 comments

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.

ianbrody avatar Apr 12 '21 19:04 ianbrody

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).

edemaine avatar Apr 13 '21 17:04 edemaine

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.)

ianbrody avatar Apr 14 '21 02:04 ianbrody

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.

edemaine avatar Apr 14 '21 14:04 edemaine

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).

ianbrody avatar Apr 16 '21 01:04 ianbrody