Bug 227486 - Pinch-zooming gets stuck sometimes
Summary: Pinch-zooming gets stuck sometimes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-29 08:51 PDT by tym46383
Modified: 2021-09-10 09:30 PDT (History)
2 users (show)

See Also:


Attachments
Intel Big Sur with Safari zooming to random places (38.47 MB, video/quicktime)
2021-06-29 15:27 PDT, tym46383
no flags Details
M1 Monterey with STP showing missed gestures and random zoomed location (72.91 MB, video/quicktime)
2021-06-29 15:44 PDT, tym46383
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tym46383 2021-06-29 08:51:50 PDT
When I pinch to zoom, it doesn't always work correctly. Sometimes, it doesn't work at all, sometimes it works as expected, and sometimes it gets stopped about halfway through zooming. It's hard to pinpoint what exactly triggers these different conditions. It happens on both zoom in and zoom out, but it's more common on zoom out.

It's a bit easier to trigger by zooming, moving your fingers elsewhere on the trackpad, and doing the opposite zooming gesture.

This is reminiscent of https://bugs.webkit.org/show_bug.cgi?id=203132 that I filed last year but it's slightly different.
Comment 1 Simon Fraser (smfr) 2021-06-29 09:55:28 PDT
We're going to need a bit more info. Does this happen on all pages? Does this happen on different hardware (if you can test)?
Comment 2 tym46383 2021-06-29 15:25:04 PDT
Hi. Sorry for the lack of info. It's hard to reproduce. It does happen on any page and I've tried it on an Intel (Big Sur) and M1 (Monterey) Mac mini with included Safari and STP. It happens in all cases but it seems that:

It happens in STP more often on Big Sur.
It happens in Safari more on Monterey.

The sites I've been testing it the most on are https://www.wireshark.org/download.html,  https://www.tripadvisor.com/VacationRentalReview-g60842-d19335162-Magical_Memories_Cabin_Gatlinburg_Pigeon_Forge_Hot_Tub_Pool_Table_Fireplace-Gatlinburg.html, and https://www.tripadvisor.com/Rentals but that's mostly just because I randomly picked them to try. They all exhibit the problem, though.

It's like it gets stuck between wanting to zoom the page and pan it. Also, sometimes when I zoom in I will end up on a random part of the page. 

The best reproduction steps I can give are, pinch on the pages a lot and it'll happen eventually. It's not every time but it's common enough to be an issue.
Comment 3 tym46383 2021-06-29 15:27:59 PDT
Created attachment 432540 [details]
Intel Big Sur with Safari zooming to random places
Comment 4 tym46383 2021-06-29 15:44:51 PDT
Created attachment 432544 [details]
M1 Monterey with STP showing missed gestures and random zoomed location

Almost every time in the s video that my mouse cursor slides up and to the left is a missed pinch gesture. Also notice the random zoomed spot at the end.
Comment 5 Simon Fraser (smfr) 2021-06-29 15:55:22 PDT
Do you happen to have viewed a PDF in the same tab before this happens?
Comment 6 tym46383 2021-06-29 16:12:51 PDT
No, on either Mac. These are fresh tabs. I have other tabs open but none are PDFs.
Comment 7 Radar WebKit Bug Importer 2021-09-10 09:30:53 PDT
<rdar://problem/82975818>