Repository navigation
Raise the desktop minPointDistance default to 4 dp - #31
Conversation
At 2.dp, a slow mouse stroke through whole pixels still came out visibly wobbly. A rendered comparison of 2 to 6 dp showed the wobble fading by 4.dp, without losing the shape of small loops. Also removes a sentence CLAUDE.md had twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Why
#28 added
minPointDistancewith a 2.dp default on desktop, where AWT reports the mouse in whole pixels. A rendered comparison of a slow whole-pixel signature at 2 to 6 dp showed 2.dp still visibly wobbly, with the wobble fading by 4.dp and small loops keeping their shape. This commit was pushed to #28's branch after it merged, so it didn't make it in.What
SignaturePadDefaults.minPointDistanceis 4.dp on the JVM. Android, iOS and web stay at 0.dp.Testing
MinPointDistanceTest.theDefaultOnDesktop_is4Dpchecks the new default. The other filter tests pass explicit distances and are unchanged.:signaturepad:allTests(JVM, JS, Wasm),:signaturepad:build,:demo:assembleand:androidDemo:assembleDebugpass. The 95 JVM tests include the existing ones that draw on the pad with the default. iOS tests run in CI.🤖 Generated with Claude Code
Summary by CodeRabbit