Open Bug 674371 Opened 9 years ago Updated 2 months ago

Support double-tap to zoom in on a section on macOS

Categories

(Firefox :: General, enhancement)

Desktop
macOS
enhancement
Not set
normal

Tracking

()

People

(Reporter: limi, Unassigned)

References

(Blocks 5 open bugs)

Details

(Keywords: parity-safari)

We should support double-tap to zoom in/out on a particular region of the page.
There's opportunity here not only to match whatever OS X Lion is doing, but also to increase commonality with Firefox mobile (which already supports this).

Additionally, I bey frequently use the built in OS X (pre-Lion) support for screen zooming (part of the Universal Access stuff), because it's just super handy to get to and works instantly.
Summary: Support double-tap to zoom in on a section on OS X Lion → [10.7] Support double-tap to zoom in on a section on OS X Lion
Assignee: nobody → waterlo1
Depends on: 851128
As per https://bugzilla.mozilla.org/show_bug.cgi?id=688990#c17, we'll be moving our work into an add-on.  Once OMTC / APZC is ready to go, the add-on will be deprecated.

The add-on depends on bugs 851128 and 853490.  It will be called "Multi-Touch Gestures" (or something very similar), and will be available on addons.mozilla.org before the end of April.

Unassigning myself from the bug.
Assignee: waterlo1 → nobody
Depends on: 1180706
No longer depends on: apz-desktop
Blocks: desktop-zoom
No longer depends on: 1180706
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-safari
Whiteboard: [parity-safari]
Depends on: desktop-zoom-xp
Blocks: 1505469

I get used to this feature in chrome and I very much miss this in Firefox. I wonder why this 8 year bug in still unresolved.

Can someone recommend an already existing addon to make this happen in firefox.

Duplicate of this bug: 1542672

This isn't really specific to Lion, updating summary.

Type: defect → enhancement
Summary: [10.7] Support double-tap to zoom in on a section on OS X Lion → Support double-tap to zoom in on a section on macOS

(In reply to sivalingam from comment #5)

I get used to this feature in chrome and I very much miss this in Firefox. I wonder why this 8 year bug in still unresolved.

Can someone recommend an already existing addon to make this happen in firefox.

It's being worked on (see recent comments in bug 789906, which is the corresponding bug for Windows).

There's also an addon linked in that bug, though people report it doesn't work very well.

I note that on mobile, we currently gate double-tap zooming on the following:

    // If the CSS viewport is narrower than the screen (i.e. width <=
    // device-width) then we disable double-tap-to-zoom behaviour.
    CSSToLayoutDeviceScale scale =
        mPresShell->GetPresContext()->CSSToDevPixelScale();
    if ((viewportInfo.GetSize() * scale).width <= screenSize.width) {
      zoomConstraints.mAllowDoubleTapZoom = false;
    }

This condition will never be true on desktop (since there is no mobile viewport sizing on desktop, the layout viewport always derives its width from the browser window's width), so we'll have to figure out what condition (if any) to gate it on for desktop.

This would really improve the UX on mac.

Hardware: x86 → Desktop
You need to log in before you can comment on or make changes to this bug.