TelegramMessenger / Telegram-iOS

Telegram-iOS
5.56k stars 1.5k forks source link

Telegram mini apps сlose on swipe after update #1447

Closed devjavy closed 1 week ago

devjavy commented 2 weeks ago

Checklist

Description

I'm making a webapp that uses swipe gesture a lot. I've found a solution that helped me to prevent swipe, but after the last update this function seems to be broken (not only in my app, even in other apps using the same method, like tapswap). Here's the link to code I've been using to prevent close on swipe

Expected Behavior

My app should close only when user presses "Cancel" or swipes app holding the special header (I'm not sure how to call this part, the one with a title of app)

Actual Behavior

App's closing when i'm making a swipe inside my page, even if I have a touchmove and touchstart events on both body element and swipeable element

Steps to Reproduce

  1. Copy the code from here
  2. Make a swipe inside app

Environment

Device: iPhone 13 Pro Max

iOS version: 17.5.1

App version: Telegram iOS 10.14.1 (29180)

TraderLeon commented 2 weeks ago

try your solution today but it doesn't work. I guess it's due to the new version of telegram 6.30. However, it seems that Tapswap still works

devjavy commented 2 weeks ago

try your solution today but it doesn't work. I guess it's due to the new version of telegram 6.30. However, it seems that Tapswap still works

It seems they fixed it yesterday. It was closing like my app when I reported it. Still, I can't find any suggestions in their code how they fixed this issue. Is there any working solution that helps to prevent swipe down on iOS?

TraderLeon commented 2 weeks ago

I am checking with TON staff now

devjavy @.***>于2024年7月8日 周一17:26写道:

try your solution today but it doesn't work. I guess it's due to the new version of telegram 6.30. However, it seems that Tapswap still works

It seems they fixed it yesterday. It was closing like my app when I reported it. Still, I can't find any suggestions in their code how they fixed this issue. Is there any working solution that helps to prevent swipe down on iOS?

— Reply to this email directly, view it on GitHub https://github.com/TelegramMessenger/Telegram-iOS/issues/1447#issuecomment-2213504796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGIOPG6YMM5WJLCCOQDE2L3ZLJLMRAVCNFSM6AAAAABKPDJQ6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGUYDINZZGY . You are receiving this because you commented.Message ID: @.***>

TraderLeon commented 1 week ago

it seems that a new api 7.7 could sovle this with Added the field isVerticalSwipesEnabled and the methods enableVerticalSwipes, disableVerticalSwipes to the class WebApp. however, when I try to use it, it is said 7.7 is not supported yet

pietrociatta commented 1 week ago

Any update on why it says 7.7 not supported? I see that is a client problem stuck at version 7.4