tldraw / tldraw-v1

A tiny little drawing app. This is the original 2021-2022 version, released under MIT.
https://old.tldraw.com
MIT License
60 stars 36 forks source link

[bug] Linux & Chrome graphic tablet issue #19

Closed vasylOstrovskyi closed 7 months ago

vasylOstrovskyi commented 1 year ago

I use Huion graphic tablet on my laptop with Ubuntu and Chrome. In this combination, tldraw incorrectly handles pessing mouse buttons:

  1. Select pen tool. Configure one of pen buttons to be left mouse button (optional).
  2. Touch the surface with pen and draw something. Works correct.
  3. Move the pen close to the surface (not touching), cursor is moving. So far, so good.
  4. Keep moving the pen close to the surface, and press mouse/touchpad/pen button. Only a single dot appears instead of drawing a line.

This happens only with Linux/Chrome/tablet. Results in other combinations with the same hardware are the following; 1 Windows & Chrome - works as expected, pressing button starts drawing.

  1. Windows & Firefox - works, but with noticeable slowdown (probably this is another issue)
  2. Linux & Firefox - works fine.
  3. Linux & Chrome with mouse/touchpad (no graphic tablet) works good.

Regards, Vasyl

mingww64 commented 1 year ago

It works fine here on Chromium, but the pressure is not detected.

vasylOstrovskyi commented 1 year ago

@wmyfelix Which version of Linux are you using? I could reproduce this issue on several computers with Ubuntu 18.04, 20.04, 22.04 and two different models of graphic tablet (both produced by Huion) For all my tests I use the official tldraw.com site

mingww64 commented 1 year ago

@vasylOstrovskyi Manjaro, Wacom CTL-4100, tldraw.com. KDE with Wayland and wacom kernel module

steveruizok commented 7 months ago

Closing this as we won't be addressing a fix for this verison. Check https://github.com/tldraw/tldraw for the latest! And please share there if the bug persists.