Pinch gesture triggers zoom of the viewport instead of zoom inside the webapp
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Webcompat Score:1, Webcompat Priority:P3, firefox95 affected)
Tracking | Status | |
---|---|---|
firefox95 | --- | affected |
People
(Reporter: karlcow, Unassigned)
References
()
Details
(Keywords: webcompat:needs-diagnosis)
User Story
platform:windows,mac,linux impact:significant-visual affects:some
- Go to https://www.earthcam.net/projects/empirestatebuilding/gigapixelpanorama/2021/
- wait for the image to load
- pinch gesture to zoom in
Expected:
Image is being zoomed in and better resolution is loaded. (The surrounding UI stays in place)
Actual:
The full viewport is being zoomed in, instead of zooming in the image. It results in a pixelated image. The webapp didn't receive the pinch gesture.
Go back to step 1.
Instead of pinch gesture, try the two fingers on the trackpad and move up to zoom in.
The image is properly zoomed with better definition.
This is very similar to what was happening in Bug 1721601 (but in the case of double tap).
Comment 1•3 years ago
|
||
Pinch zoom is distinct from double tap in that there is no way for a webpage to call preventDefault to stop the browser from double tapping but there is for pinch zooming.
![]() |
Reporter | |
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Inspecting the page that only event handler I've seen that would recieve pinch zoom events is a DOMMouseScroll handler:
function r(a) {
var c = 0;
if (1 != da.disablewheel && (ua(a), bb([277]), x())) {
a.wheelDelta ? c = a.wheelDelta / -120 : a.detail && (c = a.detail, 0 == d.mac && (c /= 3));
var b = c * da.mousefovchange;
da.zoomtocursor ? (Ga = !0, u(a), Ja = H.x, xa = H.y, 0 < b && 0 == da.zoomoutcursor && (Ga = !1)) : Ga = !1;
Ka = !0;
Ma = 0;
Ra += .001 * b;
m.wheeldelta_raw = -c;
m.wheeldelta = 3 * -c;
z([73])
}
}
Not sure if it's firing or not or if it's doing the right then when it fires.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
I forgot about bug 1705584, might be causing this.
Updated•11 months ago
|
Updated•11 months ago
|
Updated•1 month ago
|
Updated•7 hours ago
|
Description
•