Skip to content

Fixing scroll #21847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

BeatrizAlmeida03
Copy link

Description

The issue described in #21169 involved the playback speed menu of an audio block scrolling along with the background page. This happened because the menu's scroll behavior was incorrectly tied to the page's scroll.

To resolve this, we only needed to modify a single file:
WordPress/src/main/java/org/wordpress/android/widgets/NestedWebView.kt.

In this file, the isNestingScrollEnabled variable was initially set to true, which caused the playback speed menu to scroll together with the page content. As a result, when users tried to scroll through the speed options, the entire page would scroll instead.

By addressing this configuration, we decoupled the menu's scroll behavior from the parent view, allowing the playback speed options to scroll independently as expected.

Testing instructions

  • Create a post with an audio block
  • Click the 'Three-dot' menu
  • Click the 'Preview' button
  • Click the 'Three-dot' menu in the audio block
  • Click the 'Playback speed'
  • Scroll through the menu to see additional options.

closes #21169

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.

The playback speed menu and the page scroll together, making it difficult to view options
2 participants