mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-05 18:18:55 +00:00
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:
1 parent
0e8e7e34e4
commit
27f4c9c7bc
1 file changed
+4
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user