Closed Bug 605215 Opened 15 years ago Closed 15 years ago

[Regression] Multitouch: zoom goes toward the opposite side of the page with tab sidebar visible

Categories

(Firefox for Android Graveyard :: Panning/Zooming, defect)

ARM
Android
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: aakashd, Assigned: mbrubeck)

Details

Attachments

(1 file, 2 obsolete files)

Build Id: Mozilla/5.0 (Android; Linux armv71; rv:2.0b8pre) Gecko/20101018 Namoroka/4.0b8pre Fennec/4.0b2pre Steps to Reproduce: 1. Go to a zoomable page (I used AMO) 2. Wipe to the right to open the tab sidebar 3. Try to start a multitouch zoom on the "Categories" column Actual Results: The page zooms in from the right (opposite side of the page) Expected Results: The page zooms in to the left where my fingers are.
tracking-fennec: --- → ?
Assignee: nobody → mbrubeck
Attached patch patch (obsolete) — Splinter Review
We used to always hideSidebar and hideTitlebar at pinch start, so that chrome client coordinates and browser coordinates had the same origin. I'm not sure when we stopped doing hiding the toolbars during pinch. We could just go back to hiding them, but I think it's better to make it work correctly while they are open. This patch makes all coordinates relative to the browser element. This only affects pinch zoom - we still hide toolbars and sidebars at the start of double-tap and volume-rocker zoom. (With this patch we could stop doing that, but for double-tap in particular it feels better to automatically hide the sidebars so that the tapped element can fill the screen.)
Attachment #484151 - Flags: review?(ben)
Attached patch patch v2 (obsolete) — Splinter Review
Uploaded the wrong version of the patch by accident.
Attachment #484151 - Attachment is obsolete: true
Attachment #484176 - Flags: review?(ben)
Attachment #484151 - Flags: review?(ben)
Comment on attachment 484176 [details] [diff] [review] patch v2 I've found a problem with this patch - if the urlbar is onscreen when you start zooming, it remains onscreen afterward even if the top of the page is no longer visible, and stays floated unless you drag to scroll down the page. It might be best to continue to hide the toolbars either before or after zooming - or at least try to unfloat the urlbar.
Attachment #484176 - Flags: review?(ben)
Attached patch patchSplinter Review
Go back to hiding the sidebar and top bar after the zoom is finished, to fix the problem noted above.
Attachment #484176 - Attachment is obsolete: true
Attachment #484335 - Flags: review?(ben)
Attachment #484335 - Flags: review?(ben) → review+
Comment on attachment 484335 [details] [diff] [review] patch Oops accidentally hit r+ before asking where we actually hide the urlbar and sidebars?
Attachment #484335 - Flags: review+ → review?
(In reply to comment #5) > Comment on attachment 484335 [details] [diff] [review] > patch > > Oops accidentally hit r+ before asking where we actually hide the urlbar and > sidebars? In Browser.setVisibleRect.
Attachment #484335 - Flags: review? → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
verified FIXED on build: Mozilla/5.0 (Android; Linux armv71; rv:2.0b8pre) Gecko/20101019 Namoroka/4.0b8pre Fennec/4.0b2pre
Status: RESOLVED → VERIFIED
tracking-fennec: ? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: