Skip to content
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

Fix MiniApp scrolling: when scroll up - the webview is closing #1802

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fede4ka1245
Copy link

@fede4ka1245 fede4ka1245 commented Feb 9, 2024

Fix bug with scrolling inside the container on android

The bug

The mini app is minimizing, when user creates these actions: reversible scrolling, scrolling inside containers, and swiping elements down. The bug is not permenent: it happens often but not always. Additional details here

Reproduce

  1. Open android tg app
  2. Open this tg bot
  3. Open web app with menu button and expand it
  4. Scroll down
  5. Scroll up (here it is. Web view is closing)

Here is how code of this app look like: https://stackblitz.com/edit/typescript-gufuwl?file=index.ts

Importance

This problem prevents users with Android devices from working with Mini Apps. Developers are unable to create applications with the full range of advantages of web applications: reversible scrolling, scrolling inside containers, and swiping elements down. Therefore, I propose a solution to avoid all of these issues.

TLDR of the commit:

  • ignore swiping the container with web app when it's expanded
  • add menu's button "Minimize" to minimize web app

@fede4ka1245
Copy link
Author

fede4ka1245 commented Feb 9, 2024

In additional, I can suggest adding swipe only when user touches the part of container which is higher than webview (when its expanded). The place where the name of webApp is written

Screenshot 2024-02-10 at 00 11 27 1

@btbsb
Copy link

btbsb commented Apr 16, 2024

I have the same problem, has anyone fixed it?

@fakeou
Copy link

fakeou commented Apr 23, 2024

got the same question, when it will be fixed,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants