Repository navigation
fix(home): drag UX — long press survives drift, settle only on release - #61
Merged
Merged
Conversation
Device feedback after #60: natural finger wobble past the touch slop cancelled the pending long-press, making the picker unreachable; and the drag re-parented the row at every slot crossing, so it moved definitively one spot at a time and dropped mid-gesture. The long press now fires regardless of drift (only UP, CANCEL or a second pointer cancels it). While held, the picked row tracks the finger one to one and the other rows slide out of the way with a 150 ms translation animation (instant when animations are off) — the stack order and the backing data stay untouched. Dropping settles the row at the hover position: only then is it re-parented, retagged and persisted, with the residual half-row distance animated away instead of snapping. BDD: drifting-finger long-press scenario, pick-up/follows-finger/drop scenario; new world helpers longPressSlotWithDrift, pickUpSlot, dropSlot and pickedSlotFollowsFinger.
Owner
Author
|
Follow-up commit 3a9acd8 reworks the drag to reorder live:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem (device feedback on #60)
removeView/addView) at every crossing, so the row snapped to a slot and stayed there while still held, and partially dragged rows dropped on their own.Fix
translationY = dycontinuously, no snapping, no re-parenting while held.Testing
Two new BDD scenarios in
homescreen.feature:Full
./gradlew checkgreen (Cucumber BDD + 80% coverage gate).Commits are unsigned (signing key passphrase-locked).