Closed Bug 1287576 Opened 8 years ago Closed 8 years ago

Touch-action hit-test doesn't account for resolution on Fennec

Categories

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

50 Branch
All
Android
defect

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: kats, Assigned: kats)

Details

(Whiteboard: gfx-noted)

Attachments

(3 files)

The call at [1] is supposed to remove the resolution from the provided point, but it doesn't. It doesn't because it picks up the resolution from the root document rather than the root content document, so I think we need to add code similar to [2] on this code path.

[1] http://searchfox.org/mozilla-central/rev/bfcc10319e4e3ce78367fa9bba9316f7eb5248b6/gfx/layers/apz/util/TouchActionHelper.cpp#59
[2] http://searchfox.org/mozilla-central/rev/bfcc10319e4e3ce78367fa9bba9316f7eb5248b6/gfx/layers/apz/util/APZCCallbackHelper.cpp#567
In particular, this change uses the root frame of the touch target document,
so that the correct presShell resolution is used when doing the touch-action
hit test.

Review commit: https://reviewboard.mozilla.org/r/66516/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/66516/
Comment on attachment 8773854 [details]
Bug 1287576 - Change namespace and do some formatting cleanup for TouchActionHelper.

https://reviewboard.mozilla.org/r/66512/#review63704
Attachment #8773854 - Flags: review?(botond) → review+
Comment on attachment 8773855 [details]
Bug 1287576 - Extract a helper method to update a frame to the touch target document's root frame. No functional changes.

https://reviewboard.mozilla.org/r/66514/#review63708
Attachment #8773855 - Flags: review?(botond) → review+
Comment on attachment 8773856 [details]
Bug 1287576 - Update the touch-behavior notification code to behave like the set-target-apzc notification code.

https://reviewboard.mozilla.org/r/66516/#review63710
Attachment #8773856 - Flags: review?(botond) → review+
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a6c01c25609d
Change namespace and do some formatting cleanup for TouchActionHelper. r=botond
https://hg.mozilla.org/integration/mozilla-inbound/rev/77c13c4140a4
Extract a helper method to update a frame to the touch target document's root frame. No functional changes. r=botond
https://hg.mozilla.org/integration/mozilla-inbound/rev/5adee976c6cc
Update the touch-behavior notification code to behave like the set-target-apzc notification code. r=botond
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: