Skip to content

GestureDetector: Translate start & end gesture positions when rotated#13101

Merged
Frenzie merged 3 commits into
koreader:masterfrom
NiLuJe:complex_gesture_translate_fix
Jan 31, 2025
Merged

GestureDetector: Translate start & end gesture positions when rotated#13101
Frenzie merged 3 commits into
koreader:masterfrom
NiLuJe:complex_gesture_translate_fix

Conversation

@NiLuJe

@NiLuJe NiLuJe commented Jan 19, 2025

Copy link
Copy Markdown
Member

That somehow slipped through the cracks when those fields were added...

Fix #13090


This change is Reviewable

direction translation

That function call wrapper felt pretty unnecessary to me ;).
i.e., if there's a start and end position, translate those, too.

Fix koreader#13090
@NiLuJe

NiLuJe commented Jan 19, 2025

Copy link
Copy Markdown
Member Author

Testing welcome, as I'm fairly short on time right now ;).

@Frenzie Frenzie added this to the 2025.01 milestone Jan 19, 2025
@Frenzie

Frenzie commented Jan 19, 2025

Copy link
Copy Markdown
Member

When were they added and/or what depends on them precisely?

@hius07

hius07 commented Jan 20, 2025

Copy link
Copy Markdown
Member

Works good!

@NiLuJe

NiLuJe commented Jan 20, 2025

Copy link
Copy Markdown
Member Author

When were they added and/or what depends on them precisely?

It seemed familiar... #10649 ;o).

Works good!

Whee, thanks!

@Frenzie Frenzie added the bug label Jan 20, 2025
@Frenzie Frenzie merged commit aa421bf into koreader:master Jan 31, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
…koreader#13101)

* GestureDetector:adjustGesCoordinate: Remove one layer of indirectiçon in
direction translation

That function call wrapper felt pretty unnecessary to me ;).

* GestureDetector: Translate complex gesture positions, too

i.e., if there's a start and end position, translate those, too.

Fix koreader#13090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Anchor QuickMenu to gesture position" works improperly with a rotated screen

3 participants