zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
3.97k stars 213 forks source link

BUG: Crosshair cursor does not show up in the correct spot using Wacom One tablets #1755

Open Nicbudd opened 4 months ago

Nicbudd commented 4 months ago

Your environment SYSTEM INFO: Obsidian version: v1.5.12 Installer version: v1.5.12 Operating system: #1 SMP PREEMPT_DYNAMIC Wed Apr 17 19:21:08 UTC 2024 6.8.7-300.fc40.x86_64 Login status: not logged in Insider build toggle: off Live preview: on Base theme: dark Community theme: none Snippets enabled: 2 Restricted mode: off Plugins installed: 20 Plugins enabled: 13 1: Calendar v1.5.10 2: Kanban v1.4.6 3: Obsidian Git v2.8.0 4: Advanced Slides v1.20.0 5: Tasks v4.2.0 6: Map View v3.1.1 7: Templater v1.16.0 8: Style Settings v1.0.6 9: Completr v3.2.0 10: Latex Suite v1.8.8 11: LanguageTool Integration v0.3.0 12: Ollama v0.0.1 13: Excalidraw v2.1.6

image

I should also mention that fractional scaling is enabled at 150%. I am drawing using a Wacom One tablet.

Describe the bug When drawing with my drawing tablet, the crosshair cursor is misaligned from where the actual drawing occurs. I can't take a screenshot showing it because I do not have 3 hands, so I have drawn an example. I can try to get a video later today if that would be helpful.

image

The dot shows where the actual marks show up. This is incredibly frustrating. When I sometimes get the default cursor, the drawing occurs from the tip of the cursor, which is nice. This behavior does not occur on other applications (such as Krita, KolourPaint, Google Drawings with Firefox), or when using my laptop's trackpad, or when using other cursors, which is incredibly odd.

To Reproduce Steps to reproduce the behavior:

  1. Set up a machine with KDE Plasma 6 using Wayland and 150% fractional scaling, with a Wacom One tablet
  2. Open up a drawing
  3. Press down in a single spot
  4. Observe that the cursor and mark are misaligned.

Expected behavior The center of the crosshair should be where the center of the drawing occurs.

Additional context A potential solution would be to allow any cursor with a setting.

zsviczian commented 4 months ago

do you experience the same on excalidraw.com ?

zsviczian commented 4 months ago

I tested this on my Huion Kamvas. The crosshair is where it is supposed to be. Please calibrate your device.

Nicbudd commented 4 months ago

It is not misaligned on excalidraw.com on Firefox, but is misaligned on excalidraw.com on Chrome.

Chrome: Version 124.0.6367.91 (Official Build) (64-bit) Firefox: 125.0.2 (64-bit)

zsviczian commented 4 months ago

Obsidian runs in an Electron browser, which is a chromium browser - thus if this does not work as expected on Chrome on excalidraw.com, then this is not a plugin issue.

What about other apps, like draw.io or miro for example. is the crosshair positioned correctly when opening in Chrome? If not, then this is an issue that you need to raise with Wacom, or fix your driver. If other apps are working as expected, then please open a ticket with Excalidraw.com here: https://github.com/excalidraw/excalidraw/issues

rodrigor commented 4 months ago

I just created a new issue related to this problem. In my case, the cursor doesn't appear. https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/1764