Closed
Bug 766142
Opened 12 years ago
Closed 12 years ago
Pinch and zoom do not work for in-process content
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jimm, Unassigned)
Details
(Keywords: feature, Whiteboard: [metro-mvp][LOE:3])
This needs investigating. Bug 593168 may be at fault or it may be something else. Since desktop has no issues, I'm not sure why we can't implement what we do there in the metro front end. Currently zoom works fine for out of process content, but we've decided not to use that for the foreseeable future.
Updated•12 years ago
|
Component: Tabbed Browser → General
Reporter | ||
Updated•12 years ago
|
Assignee: jmathies → nobody
Reporter | ||
Updated•12 years ago
|
Component: General → Layout
Product: Firefox → Core
Comment 1•12 years ago
|
||
Desktop uses "fullZoom" or (optionally) "textZoom" which both change the scale of content but keep the viewport equal to the window size. So the layout of the content changes as you zoom, because the scale is larger but the viewport is the same (physical) size.
In contrast, in mobile browsers (including Metro IE10, and Fennec) the viewport is not fixed to the window size. When you zoom in, the CSS viewport and the page contents are physically scaled up together, so the layout of the page doesn't change. Instead you end up viewing a cropped portion of the CSS viewport.
[If that's not clear, http://quirksmode.org/mobile/viewports2.html has a longer explanation with pictures.]
If we want Metro Firefox to behave like "mobile" browsers with a "virtual" viewport, then we need something like bug 593168. In an early version of single-process Fennec we actually implemented this in the front-end just by scaling the <browser> element with CSS transforms; maybe that would work here.
Alternately, we could make Metro Firefox behave just like desktop Firefox: disable the <meta name=viewport> code, and enable zooming with nsIMarkupDocumentViewer.fullZoom.
Whiteboard: metro-preview?
Reporter | ||
Comment 2•12 years ago
|
||
Here's the original patch that added viewport scrolling:
https://bugzilla.mozilla.org/attachment.cgi?id=471743&action=diff
Updated•12 years ago
|
Blocks: desktop-zoom-win
Comment 3•12 years ago
|
||
(In reply to Matt Brubeck (:mbrubeck) from comment #1)
> Desktop uses "fullZoom" or (optionally) "textZoom" which both change the
> scale of content but keep the viewport equal to the window size. So the
> layout of the content changes as you zoom, because the scale is larger but
> the viewport is the same (physical) size.
>
> In contrast, in mobile browsers (including Metro IE10, and Fennec) the
> viewport is not fixed to the window size. When you zoom in, the CSS
> viewport and the page contents are physically scaled up together, so the
> layout of the page doesn't change. Instead you end up viewing a cropped
> portion of the CSS viewport.
>
> [If that's not clear, http://quirksmode.org/mobile/viewports2.html has a
> longer explanation with pictures.]
>
> If we want Metro Firefox to behave like "mobile" browsers with a "virtual"
> viewport, then we need something like bug 593168. In an early version of
> single-process Fennec we actually implemented this in the front-end just by
> scaling the <browser> element with CSS transforms; maybe that would work
> here.
>
> Alternately, we could make Metro Firefox behave just like desktop Firefox:
> disable the <meta name=viewport> code, and enable zooming with
> nsIMarkupDocumentViewer.fullZoom.
It seems to me that we should go with the virtual viewport: I would think that most users expect pinch+zoom to leave the layout of the page unchanged and simply zoom in to a section of it.
Updated•12 years ago
|
Whiteboard: metro-preview? → [metro-beta]
Updated•12 years ago
|
Whiteboard: [metro-beta] → [metro-mvp]
Reporter | ||
Updated•12 years ago
|
Whiteboard: [metro-mvp] → [metro-mvp][LOE:3]
Reporter | ||
Updated•12 years ago
|
Depends on: metro-omtc
Reporter | ||
Updated•12 years ago
|
No longer blocks: desktop-zoom-win, 789332
Status: NEW → RESOLVED
Closed: 12 years ago
No longer depends on: 593168, metro-omtc
Resolution: --- → INVALID
Assignee | ||
Updated•10 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•