Bug 6014 - resize from virtual keyboard breaks some applications
Summary: resize from virtual keyboard breaks some applications
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Version: 1.3.1
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Samuel Mannehed
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-27 17:06 CEST by Pierre Ossman
Modified: 2023-10-30 16:37 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2016-09-27 17:06:44 CEST
Openingen the virtual keyboard on Android resizes the browser window and hence also the ThinLinc session. Unfortunately this resize can trigger events in applications that screws up the input you were trying to do.

Example 1, gnome shell:

 1. Click activities
 2. Click the search field
 3. Open the virtual keyboard

The screen will resize, and gnome will drop out of the activities view. And the device might be too crowded to open activities again with the keyboard up.


Not sure how to solve this. Perhaps we can emulate iOS behaviour of not resizing the browser when they keyboard appears. Or perhaps we can make panning and zooming good enough that we can turn of resizing.
Comment 1 Samuel Mannehed cendio 2016-10-18 16:40:34 CEST
Problem with iOS and Windows' approach: bug 6069
Comment 2 Samuel Mannehed cendio 2022-08-01 18:17:41 CEST
https://github.com/novnc/noVNC/issues/1667
Comment 3 Samuel Mannehed cendio 2022-08-01 18:19:26 CEST
In some scenarios I think the iOS approach is less confusing despite there not being any specific problems in play. It feels more natural in my opinion.
Comment 4 Pierre Ossman cendio 2023-02-06 12:42:20 CET
The "viewport" meta tag is supposed to be able to control this behaviour:

https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag#the_effect_of_interactive_ui_widgets

Unfortunately, there is no information about browser support for this feature.
Comment 5 Pierre Ossman cendio 2023-02-06 12:43:20 CET
The new viewport units might also be a way to resolve this issue:

https://developer.mozilla.org/en-US/docs/Web/CSS/length#relative_length_units_based_on_viewport
Comment 6 Samuel Mannehed cendio 2023-07-11 14:54:59 CEST
Something seems to have changed on Android here, at least in some cases. Opening the on-screen keyboard does not cause a resize on my phone (S23 Ultra).

I am using Chrome 114, Android 13 and the default Samsung keyboard.
Comment 7 Samuel Mannehed cendio 2023-10-30 16:37:36 CET
Chrome 108 changed the default "interactive-widget" value to "resizes-visual":

https://chromestatus.com/feature/6145225857171456
https://bugs.chromium.org/p/chromium/issues/detail?id=1353728

If we want to ensure consistent behavior across platforms, we should specify a value ourselves.

Note You need to log in before you can comment on or make changes to this bug.