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

Merged
merged 5 commits into from
Jul 7, 2025
Merged

Conversation

BeatrizAlmeida03
Copy link
Contributor

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

Copy link

@adalpari
Copy link
Contributor

adalpari commented Jun 4, 2025

Hi @BeatrizAlmeida03, thank you for your contribution.
Sorry about the time it took for us to answer, but we will have a look as soon as possible.

@adalpari adalpari self-requested a review July 7, 2025 12:42
Copy link
Contributor

@adalpari adalpari left a comment

Choose a reason for hiding this comment

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

@BeatrizAlmeida03 Thank you so much for the fix! We appreciate your contributions!
LGTM and works as expected!

@adalpari adalpari enabled auto-merge (squash) July 7, 2025 12:49
Copy link

sonarqubecloud bot commented Jul 7, 2025

@iangmaia iangmaia added the Bug label Jul 7, 2025
@adalpari adalpari merged commit 5104df3 into wordpress-mobile:trunk Jul 7, 2025
19 checks passed
@dangermattic
Copy link
Collaborator

2 Warnings
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr21847-e59e93b
Commite59e93b
Direct Downloadwordpress-prototype-build-pr21847-e59e93b.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr21847-e59e93b
Commite59e93b
Direct Downloadjetpack-prototype-build-pr21847-e59e93b.apk
Note: Google Login is not supported on these builds.

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.

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