Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
5 stars 0 forks source link

Incorrect behavior of "viewport_changed" event on iOS #9

Open heyqbnk opened 1 year ago

heyqbnk commented 1 year ago

Describe the bug According to official documentation of viewport_changed event, it should send actual height of visible area of Web App. Currently, we get it with 1 exclusion - in case, when this height is less than some minimal value (for me it was 481px), native device sends it instead of visible area height.

To Reproduce Steps to reproduce the behavior:

  1. Open Web Apps polygon bot (source code)
  2. Try dragging application modal almost to the bottom of the screen
  3. Open eruda console (bottom right cog in application interface)
  4. See viewport_changed events where height is not less than some fixed value, but should be close to 0.

Expected behavior Strongly following documentation, event should contain height of visible area.

heyqbnk commented 1 year ago

ios issue: https://github.com/TelegramMessenger/Telegram-iOS/issues/970