Both canvases detected their tap with detectTapGestures, which is the wrong
tool next to a scroll container for two reasons:
- it CONSUMES the initial down, so the scrollable/horizontalScroll wrapped
around the canvas had to fight for the gesture. A quick flick frequently
did nothing, or landed as a tap and moved the cursor; only a slow,
deliberate drag scrolled reliably.
- it knows nothing about an in-flight fling, so tapping to halt a flick — the
reflex every scrolling surface trains — selected a cell under a view that
was still moving.
Replaced with detectScrollAwareTaps, shared by both canvases: it leaves the
down unconsumed so the scroll container sees the whole gesture, drops the tap
as soon as the finger travels past touch slop or the container claims a drag,
and treats a touch landing on a moving view as "stop here" rather than
"select".
Also fixes a regression from v0.22.1: keeping the cursor row on screen was
written as a standing clamp inside the scroll accessor, which made it a
constraint on the viewport rather than a reaction to the cursor moving. With
the cursor on line 0 it pinned the grid to the top and no amount of dragging
could scroll it. It is now a snapshotFlow on the cursor line that nudges the
offset only when the cursor actually moves off screen, so free scrolling is
unconstrained and a tapped cell still never moves.
Verified on an emulator (Pixel, API 34): a fast flick on the pattern grid now
flings across the whole 64-line pattern where it previously did not move at
all; a slow drag tracks 1:1 with no overshoot; a tap lands on the exact cell
and leaves the view still; the arrangement roll flings from bar 1 to bar 31 and
taps the right lane/bar. The tap-stops-a-fling path is not covered — adb cannot
inject a tap inside the fling window.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
21 lines
931 B
Properties
21 lines
931 B
Properties
# Per-platform version tracking (see CLAUDE.md -> Naming and versioning).
|
|
#
|
|
# Single source of truth: app/build.gradle.kts reads android.* from here, and
|
|
# the Makefile reads it for artifact naming and for the `bump-*` targets. Edit
|
|
# this file (or run `make bump-minor`), never the numbers in build.gradle.kts.
|
|
#
|
|
# Semantic versioning: MAJOR.MINOR.PATCH — minor for a feature, patch for a fix
|
|
# 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.23.0
|
|
android.versionCode = 51
|
|
|
|
# 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
|
|
# platform". Namespace for every platform: cc.tiredsysadmin.<os>.sizzle.
|
|
macos.versionName = -
|
|
linux.versionName = -
|
|
bsd.versionName = -
|
|
windows.versionName = -
|