Open Bug 1660431 Opened 4 years ago Updated 3 years ago

[Touchpad] Different behavior encountered on pinch zooming on Mac OS X over the door-hanger/context menu/drop-down

Categories

(Core :: Panning and Zooming, defect, P4)

All
macOS
defect

Tracking

()

Tracking Status
firefox81 --- affected

People

(Reporter: sbadau, Unassigned)

References

(Blocks 1 open bug)

Details

Affected versions
Firefox Nightly 81.0a1

Affected platforms
Mac OS X 10.15

Preconditions
fx.webrender.all = true OR fx.webrender.all = false (Reproducible on both)
apz.allow_zooming = true

Steps to reproduce

  1. Navigate to any website (Wikipedia.org)
  2. In the address bar, click on the lock icon
  3. Focus the mouse on the opened door-hanger and pinch-zoom using the touchpad
  4. Focus the mouse off the door-hanger and pinch-zoom using the touchpad.
  5. Right-click anywhere on the website to open the context menu.
  6. Focus on the opened context menu and pinch-zoom using the touchpad.
  7. Focus the mouse off the context-menu and pinch-zoom using the touchpad.
  8. Reach the login form and click on the password drop-down.
  9. Focus the mouse on the opened drop-down and pinch-zoom using the touchpad.
  10. Focus the mouse off the drop-down and pinch-zoom using the touchpad.

Expected results
Nothing should happen when pinch-zooming on the door hanger/context-menu/drop-down (steps 3, 6, and 9).
Pinch-zoom should properly work when is done outside the door hanger/context-menu/drop-down.
The door hanger/context-menu/drop-down should be closed when pinch-zoom is initiated outside of them.

Actual results
Pinch zoom is done when made outside of the door-hanger, but the door-hanger is not closed.
Pinch zoom is not done at all when the context menu is opened (regardless if the focus is on or out of the context menu).
Pinch zoom is done when made outside the drop-down and the dropdown is dismissed in the process.

Note
On Mac OS X the same behavior is also encountered on Chrome but on Windows, the drop-down, context-menu, and door-hanger are closed when pinch zoom is initiated outside of their focus. Also on Windows, pinch zooming outside the context menu, is done, while on Mac OS X 10.15 it's not done.

These behaviours are not actually specified anywhere (in web standards), so browser behaviour can vary. I think the main that that we don't want to happen is that when you pinch zoom one of the popup elements that is fixed to content gets detached from the content. So for example with the right-click context menu and drop-downs attached to form elements, if you pinch zoom they shouldn't remain in-place while the content moves out from under them.

The second thing after that is just making sure usability is not severely impacted. For example there was a bug before where if you did a two-finger scroll on a select dropdown to try and scroll it, it would close instead. We don't want that happening.

So in these examples you've identified:

  • The doorhanger is not attached to the content; it's attached to the chrome and doesn't need to move with content. So it seems fine to me that it doesn't disappear when you zoom over the content. Also seems fine that if you zoom while over the doorhanger nothing happens.
  • The context menu is attached to the content. So if you zoom outside the context menu it should either disappear, or disallow zooming. The former might be slightly better, but doing the latter is not terrible either. Zooming while on top of the context menu shouldn't do anything because that might be an accidental action while the user is trying to interact with the context menu.
  • The password dropdown behaviour you described seems ideal - pinch zooming outside it will dismiss it, while pinch-zooming inside it does nothing and keeps the dropdown open.

So of these scenarios the only one that might need tweaking is to dismiss the right-click context menu and apply zoom when the user zooms outside of the context menu. But I would say even that is not a usability problem.

We can talk about this in triage, my recommendation is to move this to desktop-zoom-post or maybe even wontfix it.

Severity: -- → S4
Priority: -- → P3
Priority: P3 → P4
You need to log in before you can comment on or make changes to this bug.