Skip to content

Commit

Permalink
Remove overscroll-behavior for its issue on vertical scrolling on hor…
Browse files Browse the repository at this point in the history
…izontal layouts on Android
  • Loading branch information
mhrastegari committed Dec 10, 2023
1 parent b6c834f commit 102bb38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ public MainPage()
#endif

#if IOS || MACCATALYST
handler.PlatformView.ScrollView.Bounces = false;

handler.PlatformView.BackgroundColor = UIKit.UIColor.Clear;
handler.PlatformView.Opaque = false;
#endif

#if ANDROID
handler.PlatformView.SetBackgroundColor(Android.Graphics.Color.Transparent);

handler.PlatformView.OverScrollMode = Android.Views.OverScrollMode.Never;
#endif
});
}
Expand Down
1 change: 0 additions & 1 deletion wwwroot/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ html, body {
margin: 0;
padding: 0;
overflow: hidden;
overscroll-behavior: none;
-webkit-tap-highlight-color: transparent;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
Expand Down

0 comments on commit 102bb38

Please sign in to comment.