Setting WkWebview.scrollview.bounces to false has no change in horizontal bounces in IOS

Satya Ramprasad Kapakayala 1 Reputation point
2021-04-15T16:39:29.983+00:00

Create a View controller and add a web view to it.
Make sure web page has horizontal and vertical scroll list or items
When scrolling to any direction, screen bounces appears and i added the code WebView.ScrollView.Bounces = false. It stopped vertical bounces but not horizontal.
Can someone help with this issue?

Thanks in advance !

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,756 Reputation points
    2021-04-16T07:00:04.92+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Check UIScrollView.AlwaysBounceHorizontal .

    If set to true and Bounces is true, then bouncing will occur when horizontal scrolling reaches the end of the view.

    You can disable the property and Bounces as well .

       WebView.ScrollView.Bounces = false;  
       WebView.ScrollView.AlwaysBounceHorizontal = false;  
    

    (It's weird , since UIScrollView.AlwaysBounceHorizontal is false by default ,but you can try the code above ).


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.