Skip to content

update desktop media screen gesture#1842

Merged
Tlaster merged 1 commit intomasterfrom
feature/desktop_media_gesture
Mar 9, 2026
Merged

update desktop media screen gesture#1842
Tlaster merged 1 commit intomasterfrom
feature/desktop_media_gesture

Conversation

@Tlaster
Copy link
Contributor

@Tlaster Tlaster commented Mar 9, 2026

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8a84aadee9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +163 to +165
.onKeyEvent {
when (it.key) {
androidx.compose.ui.input.key.Key.DirectionRight -> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate pager arrow navigation to key-down events

This handler pages on every left/right key event without checking KeyEventType, which conflicts with FlareHardwareShortcutsNode.onKeyEvent() in FlareHardwareShortcutDetector.kt that only consumes KeyDown and returns false for KeyUp. In practice, when a zoomed image handles arrow-key panning on key-down, the key-up event still bubbles here and triggers animateScrollToPage(...), so a pan gesture can also switch to the next/previous media item. Restricting this logic to key-down (or consuming matching key-up events) avoids unintended page changes while panning.

Useful? React with 👍 / 👎.

@Tlaster Tlaster merged commit 6c95a89 into master Mar 9, 2026
8 checks passed
@Tlaster Tlaster deleted the feature/desktop_media_gesture branch March 9, 2026 06:18
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.

1 participant