Repository navigation
Replies: 1 comment
|
Yes please do, my pen didn't send hover to WebKit so I never was able to test if it had good UI. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The Apple Pencil hover dot that came with 3.0 (from #353) is a great idea, but as it stands I find it nearly unusable for writing. The dot is much bigger than the stroke it's previewing.
There are two causes, both carried over from the mouse cursor (#27), where they make sense:
MIN_CURSOR_PX). A fine pen at normal zoom is about 2 px on screen, so the dot comes out around three times the stroke's width. A mouse needs a minimum so it doesn't disappear. A Pencil doesn't: the tip already shows where you'll write. The dot's only job is to show the stroke's size and colour, and the minimum defeats that.Suggestion:
I've tried this in a local build. The hover dot then matches the stroke exactly, and nothing changes for the mouse cursor on desktop. It's a small change in
pen-cursor.ts: aminPxoption forcursorSizeandcursorFor, and a rim chosen by the ink's lightness. The surface passes the smaller minimum only toPenHoverCursor. I'm happy to open a PR if you'd take it.All reactions