Skip to content

Conversation

lightSoulDev
Copy link

Description:
On some Android devices, there is an issue with the calculation of keyboard size, leading to an undesired viewport behavior. Specifically, when rapidly switching the device's orientation from landscape to portrait and back to landscape, the viewport becomes minimized to a black square. The side length of this square matches the device's portrait width.

This issue has persisted for several years and significantly impacts the user experience on affected Android devices.

Reproduction Steps:

  1. Start with an Android device in landscape mode.
  2. Rapidly switch the device to portrait mode.
  3. Quickly switch the device back to landscape mode.
  4. Observe the viewport becoming a black square, with a side length equal to the device's portrait width (a).

P.S.
I can try to provide screenshots if necessary.

Invalid keyboard size calculation on some android devices.
Sometimes viewport minimized to square on orientation change with active keyboard
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

Successfully merging this pull request may close these issues.

1 participant