mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5706] [MERGED] fix(client): give avatar crop handles a mobile-sized touch target #6894
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6894
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5706
Author: @Gunterlie
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/avatar-crop-handle-touch-target📝 Commits (2)
025eaa3fix(client): give avatar crop handles a mobile-sized touch target2673316Merge branch 'staging' into fix/avatar-crop-handle-touch-target📊 Changes
1 file changed (+46 additions, -15 deletions)
View changed files
📝
packages/client/src/components/ui/AvatarCropWidget.tsx(+46 -15)📄 Description
Closes #5705
Why
The avatar crop corner handles are 14×14 CSS px, which is roughly 3.5mm on a phone — well under the ~44px mobile minimum. The reporter's video shows repeated missed taps ("I only tap the drag handles by luck").
Two things made it worse than the size alone suggests:
touch-action. The crop box setstouch-none, buttouch-actionis not inherited, so a drag starting on a handle could be claimed by the WebView as a scroll beforesetPointerCaptureinonPointerDowntook effect.What
The visible 14px square is unchanged and still drawn exactly where it was. It is now wrapped in a 44px transparent touch target with
touch-action: none.The target reaches mostly outward from the crop corner — it intrudes only
HANDLE_VISUAL_PX / 2(7px) into the crop box. That matters becauseMIN_CROP_PXis 24: centred 44px targets would have covered a minimum-size crop entirely and made panning unreachable on touch. Reaching outward keeps the pan area usable at every crop size and stops the four corners overlapping each other.AvatarCropWidgetis shared byCharacterEditorandPersonaEditor, so this covers the persona crop the reporter suspected was also affected.Test plan
pnpm checknode scripts/run-regressions.mjsSummary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.