Open Bug 1735319 Opened 3 years ago Updated 7 hours ago

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)

Webcompat Score 1
Webcompat Priority P3
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
  1. Go to https://www.earthcam.net/projects/empirestatebuilding/gigapixelpanorama/2021/
  2. wait for the image to load
  3. 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).

See Also: → 1721601

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.

Summary: Performance: stuttery operations, inconsistent controls → Pinch gesture triggers zoom of the viewport instead of zoom inside the webapp

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.

Severity: -- → S3
Priority: -- → P2

I forgot about bug 1705584, might be causing this.

Severity: S3 → --
Webcompat Priority: P2 → ---
Component: Panning and Zooming → Site Reports
Priority: P2 → --
Product: Core → Web Compatibility
Version: Firefox 95 → unspecified
Severity: -- → S3
User Story: (updated)
Priority: -- → P3
Webcompat Priority: --- → P3
Webcompat Score: --- → 1
You need to log in before you can comment on or make changes to this bug.