-
Notifications
You must be signed in to change notification settings - Fork 220
Prevent auto-zooming when form field gets focus. Fixes #755 #838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Works for me!
As per @keianhzo, the editable text field is the one that triggers zoom for me, but no longer seems to be an issue here.
Also tested a few login pages and zoom doesn't appear to be an issue any longer.
I think the zoom behavior is also controlled by meta viewport max and minimum zoom, which probably explains why it happens on some sites and not others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested this on https://webxr.sh/editable and various login forms, including GMail, Outlook, and Wikipedia 👍
@@ -706,6 +706,7 @@ private void vrPrefsWorkAround(Context aContext, Bundle aExtras) { | |||
out.write("pref(\"webgl.enable-surface-texture\", true);\n".getBytes()); | |||
out.write("pref(\"apz.allow_double_tap_zooming\", false);\n".getBytes()); | |||
out.write("pref(\"dom.webcomponents.customelements.enabled\", true);\n".getBytes()); | |||
out.write("pref(\"formhelper.autozoom\", false);\n".getBytes()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
7887d04
to
43d0016
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ship it! 👍
@@ -706,6 +706,8 @@ private void vrPrefsWorkAround(Context aContext, Bundle aExtras) { | |||
out.write("pref(\"webgl.enable-surface-texture\", true);\n".getBytes()); | |||
out.write("pref(\"apz.allow_double_tap_zooming\", false);\n".getBytes()); | |||
out.write("pref(\"dom.webcomponents.customelements.enabled\", true);\n".getBytes()); | |||
// Prevent autozoom when giving a form field focus. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: or a <div contenteditable>
No description provided.