diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-08-27 19:07:48 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-08-27 19:07:48 -0400 |
| commit | 5495b944f66bfeeb3f6eff5c4674bbc9481046da (patch) | |
| tree | 1865ae98f6ac069fb41b5ad202ccc715cc62a167 | |
| parent | 3ab53f7cb601c62ede22f1927db5aa3baf00a6e9 (diff) | |
fix: prevent accidentally jumping to a message while scrolling
| -rw-r--r-- | main/src/ui/conversation_content_view/quote_widget.vala | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main/src/ui/conversation_content_view/quote_widget.vala b/main/src/ui/conversation_content_view/quote_widget.vala index ce0011e1..98aefacb 100644 --- a/main/src/ui/conversation_content_view/quote_widget.vala +++ b/main/src/ui/conversation_content_view/quote_widget.vala @@ -87,11 +87,17 @@ namespace Dino.Ui.Quote { GestureClick gesture_click_controller = new GestureClick(); outer.add_controller(gesture_click_controller); + bool click_stopped = false; gesture_click_controller.pressed.connect(() => { - model.jump_to(); + click_stopped = false; + }); + gesture_click_controller.stopped.connect(() => { + click_stopped = true; + }); + gesture_click_controller.released.connect(() => { + if (!click_stopped) model.jump_to(); }); return outer; } } - |
