Keep the tapped cell under the finger on a scrolled pattern grid (v0.22.1)
On a pattern long enough to overflow the viewport, tapping a cell moved the grid: the follow logic re-centred the viewport on the cursor the moment it changed, so the row that was just tapped slid up to the middle of the screen, well away from the fingertip. The hit test itself was correct — the view moved out from under it. While not playing the view now holds still and scrolls only far enough to keep the cursor row on screen, so a tap never moves it and an off-screen cursor (arrow keys, punch-in advancing a row) still comes back into view. Centring on the playhead during playback is unchanged, as is the flick-to-detach. Also clip the Canvas. Compose does not clip a Canvas to its bounds, and the grid deliberately draws one row past each edge to fill the partially scrolled rows, so a scrolled grid painted over the toolbar above it. Verified on an emulator (Pixel, API 34): before the fix a tap near the bottom of a 64-line pattern jumped the row to the middle; after it the row stays under the tap, scroll-then-tap lands on the right cell, an off-screen cursor is pulled back to the nearest edge, and the playhead still centres during playback. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
fdee7853e5
commit
1815566b6c
+2
-2
@@ -8,8 +8,8 @@
|
||||
# or polish. android.versionCode is monotonic and bumps by 1 on every release,
|
||||
# because F-Droid and the Android package manager order installs by it alone.
|
||||
|
||||
android.versionName = 0.22.0
|
||||
android.versionCode = 49
|
||||
android.versionName = 0.22.1
|
||||
android.versionCode = 50
|
||||
|
||||
# No desktop builds exist yet. These lines are the agreed slots so a port starts
|
||||
# with a version instead of inventing one; `-` means "not built on this
|
||||
|
||||
Reference in New Issue
Block a user