Skip to content

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 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 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

rmarinho
rmarinho previously approved these changes Jul 11, 2025
@dotnet dotnet deleted a comment from mattleibow Jul 11, 2025
@dotnet dotnet deleted a comment from mattleibow Jul 11, 2025
@dotnet dotnet deleted a comment from azure-pipelines bot Jul 11, 2025
@rmarinho rmarinho merged commit 16cd665 into net10.0 Jul 11, 2025
32 of 130 checks passed
@rmarinho rmarinho deleted the dev/ios-bounce branch July 11, 2025 14:13
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants