Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
8 stars 1 forks source link

Mini App scrolls by iOS device's safe-area at bottom #39

Open rnakashiro opened 1 month ago

rnakashiro commented 1 month ago

Platform

Select platforms where this bug is reproducible:

Describe the bug

When opening implemented mini-apps on iOS device, the screen scrolls an extra amount equal to the height of the safe-area at the bottom.
When I tried displaying the mainButton, it was fixed in place and worked correctly.

So, I think it would be better to have the SDK handle the safe-area correctly when the mainButton is not displayed.

Additionally, I tried using the disableVerticalSwipe feature of SwipeBehavior, but since this feature is intended to prevent the app from closing by swipe, I recognize that a different solution is needed by SDK.

To Reproduce

Steps to reproduce the behavior:

  1. Implement a Mini App
  2. Open the app on iOS device, and scroll

Expected behavior

The SDK should either avoid adding the extra safe area height or provide an option to disable it.

Prooksius commented 2 weeks ago

The same issue, I have a bottom menu in my Mini app with position: fixed and it jumps up exactly on safearea bottom when i'm scrolling to the page bottom.

MainButton however stays steady, not jumping while scrolling to the bottom.

May be there is a workaround for bottom fixed menus in Mini apps. Everything I've found googling this issue is not working in Mini apps.

Prooksius commented 2 weeks ago

I've found a workaround to fix this issue, when MainButton is not shown: