diff options
| author | Chris Boyle <chris@boyle.name> | 2023-02-10 15:23:33 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-16 23:37:59 +0000 |
| commit | 111db0743bd273c340dd683449076fd9ec5797f5 (patch) | |
| tree | 83037975905d07133e7f87eedca2af57f350257b | |
| parent | a1f1d7c24713277a96c1f508cd3782e5aaf18c69 (diff) | |
| download | puzzles-111db0743bd273c340dd683449076fd9ec5797f5.zip puzzles-111db0743bd273c340dd683449076fd9ec5797f5.tar.gz puzzles-111db0743bd273c340dd683449076fd9ec5797f5.tar.bz2 puzzles-111db0743bd273c340dd683449076fd9ec5797f5.tar.xz | |
Tracks: set drag_s{x,y} even if starting off-grid
Otherwise, if subsequent mouse/finger movement lines up with the previous
drag attempt's start, then suddenly a drag is in progress from there, which
is confusing.
Fixes #588
(cherry picked from Android port,
commit 8ce1bbe460d70a915caf2dbeb30354d22dc8a8ef)
| -rw-r--r-- | tracks.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2267,6 +2267,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, if (!INGRID(state, gx, gy)) { /* can't drag from off grid */ + ui->drag_sx = ui->drag_sy = -1; return NULL; } |