Skip to content

fix(ime): floating window drag moves opposite horizontally on Samsung (#46) - #47

Merged
willwade merged 1 commit into
mainfrom
fix/floating-drag-direction
Sep 15, 2026
Merged

willwade merged 1 commit into
mainfrom
fix/floating-drag-direction

Conversation

@willwade

Copy link
Copy Markdown
Contributor

Fixes #46 — Heide's Galaxy Fold 5 report: 'When you move the float window horizontally, it moves the opposite way. It moves the correct way vertically, though.' Two bugs: resolving to on Samsung overlays (x-axis inverted), and a compensating on the y-axis that only worked by accident. Both fixed to explicit + standard direction. Two-line fix. DCO signed.

…#46)

Two bugs in one, both from Heide's Galaxy Fold 5 report:

- Gravity.TOP or Gravity.START: on Samsung, START resolves to RIGHT for
  overlay windows — x is measured from the RIGHT edge, so params.x +=
  dx moves the window LEFT (Heide: 'it moves the opposite way
  horizontally'). Fixed: Gravity.LEFT (explicit, never locale-dependent).
- params.y = initY - dy: the minus was compensating for the same Samsung
  y-axis flip — it happened to work on Samsung but would be inverted on
  stock Android. Fixed: + dy (correct with TOP gravity everywhere).

Both axes now use the standard direction; the drag follows the finger
on all devices.

Signed-off-by: will wade <willwade@gmail.com>
@willwade
willwade force-pushed the fix/floating-drag-direction branch from 52f1855 to 4d7897e Compare September 15, 2026 21:38
@willwade
willwade merged commit 559baa1 into main Sep 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Floating window drag: horizontal moves opposite on Samsung (Galaxy Fold 5) — gravity + y-axis inversion

1 participant