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

Bot API 8.0+ bug: event fullscreenChanged isn't being fired #1190

Open
kubk opened this issue Nov 18, 2024 · 0 comments
Open

Bot API 8.0+ bug: event fullscreenChanged isn't being fired #1190

kubk opened this issue Nov 18, 2024 · 0 comments

Comments

@kubk
Copy link

kubk commented Nov 18, 2024

Steps to reproduce:

  1. Add the following code:
WebApp.onEvent("fullscreenChanged", () => {
  console.log('fullscreenChanged');
});
  1. Click on Settings > Fullscreen
Screenshot 2024-11-18 at 17 56 56

Expected result:

  • Callback for fullscreenChanged is fired
  • WebApp.isFullscreen becomes true

Actual result:

  • Callback for fullscreenChanged isn't fired
  • WebApp.isFullscreen stays false even in fullscreen

Note: the subscription code above is correct because when I switch from fullscreenChanged to ⁠viewportChanged, the callback is triggered. However, even in this case, ⁠WebApp.isFullscreen remains false.

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

No branches or pull requests

1 participant