Touch pan: a pan that never saw its release doesn't swallow the next press

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-19 12:22:57 -04:00
co-authored by Claude Opus 5.5
parent 0e8e7e34e4
commit 27f4c9c7bc
+4
View File
@@ -769,6 +769,10 @@ pub fn show(app: &mut SheetApp, ui: &mut egui::Ui) {
}
// Interaction.
let previous_popups = (app.grid.filter_menu, app.grid.list_picker, app.grid.header_menu);
// A pan the grid never saw end (it was hidden mid-drag) must not swallow the next press.
if app.grid.touch_pan && !resp.dragged() && !resp.drag_stopped() {
app.grid.touch_pan = false;
}
if app.grid.touch_pan {
// Skip the frames of a touch pan, its release included.
if !resp.dragged() {