From f279790e0002cfcaa0197431af9e13e605aa774a Mon Sep 17 00:00:00 2001 From: Harald Date: Mon, 9 Nov 2026 22:34:35 +0100 Subject: [PATCH] fix(ruler): stop a finger drag of the ruler when the pen comes near (Issue #55) Co-Authored-By: Claude Opus 5.5 --- src/app.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app.rs b/src/app.rs index 72463a5..e617eac 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1901,6 +1901,10 @@ pub fn run_with( PenEvent::In => { is_stylus_in_proximity = true; stylus_tool_id = Some(tool); + // A finger that moved the ruler is done once the pen comes near: + // if its lift has not arrived yet, the ruler would follow the + // hovering pen (Issue #55). The pen grabs the ruler only on touch. + ui_state.ruler_drag = None; } PenEvent::Out => { if is_stylus_in_proximity {