Closed daniilkananenka closed 1 month ago
Temporarily fix from @heyqbnk :
postEvent('web_app_setup_swipe_behavior', { allow_vertical_swipe: false });
Fixed in @telegram-apps/sdk@2.4.0
. Thank you for report!
PR: https://github.com/Telegram-Mini-Apps/telegram-apps/pull/491
Telegram Application
Telegram for Android, Telegram for iOS
Describe the Bug
In new major version of @telegram-apps/sdk-react
swipeBehavior.disableVertical()
doesn't work as expected - it doesn't disable vertical swipes at all.To Reproduce
Steps to reproduce the behavior:
init.ts
file addimport {swipeBehavior} from '@telegram-apps/sdk-react
init
function addExpected Behavior
swipeBehavior.disableVertical()
should disable vertical swipes