mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-28 20:56:54 -06: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:
co-authored by
Claude Opus 5.5
parent
0e8e7e34e4
commit
27f4c9c7bc
@@ -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