question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Freehand pen mode skips stroke if it starts within ? ms after previous stroke

See original GitHub issue

Before I start, I would like to mention that I’m really happy with the new pen mode with palm rejection. It’s a major improvement over the previous situation!

I tried hand writing in freehand mode with an Apple Pencil (i.e., “drawing” text, not using the Pencil as an alternative keyboard). I’m seeing this issue both in mobile Safari and in the mobile Obsidian app through the Excalidraw plugin for Obsidian (which I updated to the latest version before testing).

To reproduce, it might be sufficient to try hand-writing a sentence with the freehand draw tool using any hardware stylus.

When hand writing, I (and probably most people) make quick movements with the pen. Sometimes I write subsequent letters in a single stroke (ligatures), while other times, I lift the pen briefly between two letters in order to start the next letter with a new stroke (non-ligatures). When I write a non-ligature within a word, Excalidraw ignores the second stroke. After that it will pick up the next (i.e., third) stroke again. This has the overall effect of skipping every second stroke within a word.

Rather than an even-odd problem, it seems to be a timing issue (i’m guessing debounce or throttle, but I will refrain from interpreting the issue). If I intentionally wait a little between two strokes, both strokes will be picked up. The first stroke of a new word is also always picked up, which seems to suggest that the slightly longer break introduced by a space (which is typically when I shift my hand a bit) is just enough to prevent the next stroke from being ignored.

While the new pen mode works very well for me in general, this stroke-skipping issue is currently preventing me from using Excalidraw for the purpose I have in mind.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dwellecommented, Feb 5, 2022

Here’s an attempted fix for the Scribble missing strokes issue: https://excalidraw-git-fixscribble-excalidraw.vercel.app/ Lemme know if you can still reproduce!

1reaction
dwellecommented, Feb 4, 2022

In theory it should be fixable. I’ll try to take a look at it this weekend if we can do anything about it.

closing in favor of https://github.com/excalidraw/excalidraw/issues/3955

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scribble: Apple Pencil misses strokes · Issue #3955 - GitHub
When I try to use my pencil some strokes are drawn, some strokes are missed, and some strokes seem to be doing a...
Read more >
How to Use Pen Mode in OneNote - YouTube
In this how to use Pen Mode in OneNote Notebook tutorial we teach you how to use a pen in touch screen mode...
Read more >
Draw and sketch notes on a page - Microsoft Support
OneNote lets you draw, sketch, or write notes with a your finger, a pen, or even a mouse. You can also choose from...
Read more >
Tablet skipping strokes when pressing lightly, losing sensitivity
The problem itself: My tablet seems to skip strokes when I do light strokes. If I would for example draw a circle by...
Read more >
3 Ways to Avoid a Second Stroke | Johns Hopkins Medicine
What can stroke patients do to avoid a recurrence? It turns out that stroke has a lot in common, risk-wise, with diabetes, cardiovascular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found