Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Pen moving canvas instead drawing #2201

Open
2 tasks done
turbodt opened this issue Jan 7, 2025 · 9 comments
Open
2 tasks done

BUG: Pen moving canvas instead drawing #2201

turbodt opened this issue Jan 7, 2025 · 9 comments

Comments

@turbodt
Copy link

turbodt commented Jan 7, 2025

Have you searched for existing issues (including closed ones)?

  • Yes, I have searched the existing issues.

Does this bug persist in a new vault with only Excalidraw installed?

  • Yes, I have verified the issue persists.

Your environment

Android - Samsung Tab 9 Ultra with s-pen.

System info:

 Operating system: android 14 (samsung SM-X910)
 Obsidian version: 1.7.7 (171)
 API version: v1.7.7
 Login status: not logged in
 Language: en
 Live preview: on
 Base theme: adapt to system
 Community theme: none
 Snippets enabled: 0
 Restricted mode: off
 Plugins installed: 1
 Plugins enabled: 1
  1: Excalidraw v2.7.5

Describe the bug

When coming back to pen mode after any other mode, sometimes the s-pen moves the canvas instead of drawing on it.

It does not happens every time, but often enough so I definitively cannot write two minutes in a row without this happening.

I did not found any related bug, so it may be specific for the device.

Attaching video.

document_6046284303078267010.mp4

Steps to reproduce

  1. Open new excalidraw file
  2. Write something.
  3. Switch to eraser or any other thing. Change the zoom.
  4. Continue writing.
  5. If nothing happens, repeat.

Expected behavior

On switching back to pen mode, the s-pen should write instead of moving the canvas around.

Additional context

No response

@sametcodes
Copy link

sametcodes commented Jan 7, 2025

This occurs on MacOS as well. I'm using a drawing tablet. The same issue doesn't occur on excalidraw.com

I'm able to re-produce this issue on excalidraw.com. It occurs whenever user clicks on the page with mouse, the pen gets disabled and moving the canvas.

Related: excalidraw/excalidraw#8476

@turbodt
Copy link
Author

turbodt commented Jan 8, 2025

I couldn't reproduce this issue on excalidraw.com with my tablet.
It may be something related to touch handling is different in browser and in the Android app.
Or this issue is unrelated to the touch/click handling system.

@zsviczian
Copy link
Owner

Please also include Obsidian Debug Info as requested on the Issue form.

I tested this scenario on my S23Ultra with s-pen. I was not yet able to reproduce the issue.

@turbodt
Copy link
Author

turbodt commented Jan 8, 2025

System info added.

@cdiak
Copy link

cdiak commented Jan 8, 2025

Have a similar problem using a Wacom CTL-6100 pen and tablet on MacOS. Otherwise a great plugin, but I do routinely deal with this. Reloading the plugin resolves the issue.

@zsviczian
Copy link
Owner

unfortunately until I am able to reproduce the issue there is no chance of fixing it. Please help me be creating a robust repeatable approach for getting Excalidraw into this state.

@mochsner
Copy link

mochsner commented Jan 14, 2025

Have a similar problem using a Wacom CTL-6100 pen and tablet on MacOS. Otherwise a great plugin, but I do routinely deal with this. Reloading the plugin resolves the issue.

What do you mean by "reloading"...? Just refreshing all community plugins?

Edit: closing the tab and re-opening seemed to fix for me this time, but didn't when I originally wrote this. Maybe possible that all excalidraw tabs weren't closed last time when it didn't work, but not sure.

@mochsner
Copy link

mochsner commented Jan 16, 2025

unfortunately until I am able to reproduce the issue there is no chance of fixing it. Please help me be creating a robust repeatable approach for getting Excalidraw into this state.

With a wacom cintiq pro 16 on ubuntu 20.14, I am able to reliably reproduce this:

  1. Go into pen mode and write (using actual pen)
  2. Take a screenshot, paste screenshot into obsidian/excalidraw (still in pen mode) -- in desktop case, using Ctrl+V
  3. Clicking 1 to switch to grab mode
  4. Grab mode moves the whole notebook, instead of any objects (the bug)

The bug does NOT seem to occur for me if any ONE of these below conditions are true:

  1. Wacom is disabled (usb data link unplugged for touchscreen), and used simply as an external monitor
  2. I switch to selection tool before pasting (via "1" keyboard shortcut)
  3. I am using excalidraw.com (possibly because it has a separate "selection" and "hand panning" tool)

Would love confirmation from other OS's that this replicates for you as well (or not)...

myself - Wacom Cintiq pro 16 on Ubuntu 20.14
@sametcodes - unknown tablet/pen on macOs
@turbodt - Samsung s-pen on Android 14

@Raifa21
Copy link

Raifa21 commented Jan 21, 2025

@zsviczian
With a Wacom One with MacOS Sonoma 14.5, I am also able to reliably reproduce this:

  1. Go into pen mode and write (using actual pen)
  2. Lift the pen up
  3. Tap the touchpad(on the macbook)
  4. Writing on the wacom grabs and scrolls the page

These are the conditions where it also randomly happens:

  • Lifting the pen and moving it away from the wacom then trying to write again
  • switching tabs
  • left clicking while writing

It sometimes lets me back into writing after clicking, sometimes I have to restart Obsidian to be able to write again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants