ClassiCube / ClassiCube

Custom Minecraft Classic / ClassiCube client written in C from scratch (formerly ClassicalSharp in C#)
Other
1.39k stars 197 forks source link

Entering chat with web client on mobile ios in vertical orientation causes game to get pushed offscreen #733

Open UnknownShadow200 opened 3 years ago

UnknownShadow200 commented 3 years ago

Seems to be a general issue: https://blog.opendigerati.com/the-eccentric-ways-of-ios-safari-with-the-keyboard-b5aa3f34228d

Note: I've tried asking a user with an iphone to test the game canvas with a style of position: fixed; top 0; and a style of position: absolute; top 0; - issue still occurred both times.

image

TheAwesome98-Real commented 3 years ago

Oh yeah, I noticed this the other day.

EDIT: I guess you could turn off zooming with CSS? It's like -webkit-zooming: false; or something, I can't remember.

UnknownShadow200 commented 3 years ago

Attempted to disable all zooming before with <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> but that achieved nothing

TheAwesome98-Real commented 3 years ago

Oh by the way, this isn’t only chat. Any input element with type="text" on it (Level name, e.g) does it. Funnily enough, a type="number" box doesn’t do this (such as the hack speed multiplier).