Search code examples
progressive-web-appschromiumtrusted-web-activitytwabubblewrap

How do I disable pull to refresh behavior in Trusted Web Activity (TWA)?


I have my PWA app which has this code in main.css file.

  @media all and (display-mode: fullscreen) {
    overscroll-behavior: none;
  }

And when added to Homescreen and launched in fullscreen mode (set in manifest.json), pull-to-refresh is disabled as expected.

However, in TWA case:

When I create signed APK using https://github.com/GoogleChromeLabs/bubblewrap pull-to-refresh behavior is not disabled.

Is there any solution for this?


Solution

  • That's All

    body {
    overscroll-behavior: contain;
    }