Skip to content

Prevent the BlazorWebView bounce on iOS #30176

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: net10.0
Choose a base branch
from
Open

Conversation

mattleibow
Copy link
Member

Description of Change

Disbale the buiny/overscroll by default on iOS since this is a hybrid app. No need for overscroll on titlebars. It is weird.

Better than #30169

Issues Fixed

Fixes #6689

@Copilot Copilot AI review requested due to automatic review settings June 24, 2025 19:00
@mattleibow mattleibow requested a review from a team as a code owner June 24, 2025 19:00
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR disables the bounce/overscroll behavior on iOS/macOS Catalyst for BlazorWebView by default and adds a device test to verify the new behavior.

  • Add Bounces, AlwaysBounceVertical, and AlwaysBounceHorizontal toggles in the iOS handler to false.
  • Introduce a new device test (BlazorWebViewScrollBounceDisabledByDefault) to validate the default scroll settings.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/BlazorWebView/tests/MauiDeviceTests/Elements/BlazorWebViewTests.Behaviors.cs New device test to assert bounce is disabled on iOS/Catalyst
src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs Disable scroll bounce properties by default
Comments suppressed due to low confidence (1)

src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs:115

  • Update the public XML documentation in /docs/ to reflect that bounce scrolling is now disabled by default on iOS and MacCatalyst.
			// Disable bounce scrolling to make Blazor apps feel more native

@mattleibow
Copy link
Member Author

/rebase

@mattleibow
Copy link
Member Author

/rebase

@mattleibow
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

This reverts commit eae5211.
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