Bug 256157 - Pinch to zoom gesture in Google Maps and Figma is not working in OpenSource builds
Summary: Pinch to zoom gesture in Google Maps and Figma is not working in OpenSource b...
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-30 20:42 PDT by Vladimir Prelovac
Modified: 2024-01-08 06:18 PST (History)
17 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Prelovac 2023-04-30 20:42:03 PDT
Steps to reproduce:

- Build WebKit with 
- Run Mini browser
- Go to https://www.google.com/maps

Pinch to zoom in/out on a map will not work. The same is in Figma app (to zoom the canvas).

It works properly in Safari.
Comment 1 Alexey Proskuryakov 2023-05-02 15:04:13 PDT
Not sure if this is a regression, or just a MiniBrowser issue.
Comment 2 Radar WebKit Bug Importer 2023-05-02 15:04:28 PDT
<rdar://problem/108811433>
Comment 3 Vladimir Prelovac 2023-05-02 15:55:45 PDT
(In reply to Radar WebKit Bug Importer from comment #2)
> <rdar://problem/108811433>

Thanks for looking into this.

It has been like this for at least 6 months. 

When I say mini browser I mean Webkit build. It also does not work when WebKit is used separately.
Comment 4 Simon Fraser (smfr) 2023-05-02 16:20:04 PDT
I can’t reproduce; pinch zoom works in MiniBrowser for me.
Comment 5 Vladimir Prelovac 2023-05-02 16:24:07 PDT
(In reply to Simon Fraser (smfr) from comment #4)
> I can’t reproduce; pinch zoom works in MiniBrowser for me.

Note that what happens is canvas zoom, not the map. In Safari if you pinch to zoom in, the map will actually change the zoom level allowing you to zoom into a location. In standalone WebKit these gestures do not get passed to the map, and standard WebKit pinch gesture is executed. Hope that makes sense.
Comment 6 Simon Fraser (smfr) 2023-05-02 18:11:01 PDT
I see the map zoom. Check the User Agent setting in MiniBrowser?
Comment 7 Vladimir Prelovac 2023-05-02 20:23:30 PDT
(In reply to Simon Fraser (smfr) from comment #6)
> I see the map zoom. Check the User Agent setting in MiniBrowser?

User Agent set  to default.

I made this video. This is WebKit just compiled off main branch, on Ventura. The map does not zoom, just the canvas does. 


https://streamable.com/z11tqi
Comment 8 Vladimir Prelovac 2023-05-02 20:29:56 PDT
From poking around a little bit I found these relevant leads


https://bugs.webkit.org/show_bug.cgi?id=145214
https://bugs.webkit.org/show_bug.cgi?id=225788

https://trac.webkit.org/changeset/277772/webkit

#if ENABLE(MAC_GESTURE_EVENTS)

#if ENABLE(KINETIC_SCROLLING)
Comment 9 Vladimir Prelovac 2023-05-02 20:39:39 PDT
I should note that two finger pinch to zoom (diagonal towards each other) does not work. In Safari this works normally (in WebKit causes canvas zoom).

https://c.tenor.com/R8Ic64GwH4EAAAAM/zoom-fingers.gif

Two fingers parallel does zoom in WebKit:

https://www.htc.com/media/filer_public/support/au/guid-32c58e9b-f3c1-4dc3-864e-1953b8893258-web_BxX5txz.gif
Comment 10 Tim Horton 2023-05-02 21:10:06 PDT
This is expected, apologies!
Comment 11 Vladimir Prelovac 2023-05-02 21:34:55 PDT
(In reply to Tim Horton from comment #10)
> This is expected, apologies!

Sorry, what is?
Comment 12 Tim Horton 2023-05-02 21:52:30 PDT
(In reply to Vladimir Prelovac from comment #11)
> (In reply to Tim Horton from comment #10)
> > This is expected, apologies!
> 
> Sorry, what is?

The fact that gesture events don't work in local builds.
Comment 13 Vladimir Prelovac 2023-05-02 21:58:06 PDT
Sorry, why wouldn't they work? This prevents usage in apps like Maps and Figma.
Comment 14 Tim Horton 2023-05-02 22:04:46 PDT
(In reply to Vladimir Prelovac from comment #13)
> Sorry, why wouldn't they work? This prevents usage in apps like Maps and
> Figma.

To be clear, you're saying they don't work with built-in system WebKit (not custom-built WebKit) in Maps and Figma?
Comment 15 Vladimir Prelovac 2023-05-02 22:57:22 PDT
(In reply to Tim Horton from comment #14)
> (In reply to Vladimir Prelovac from comment #13)
> > Sorry, why wouldn't they work? This prevents usage in apps like Maps and
> > Figma.
> 
> To be clear, you're saying they don't work with built-in system WebKit (not
> custom-built WebKit) in Maps and Figma?

No, I am saying gestures do not work in custom-built WebKit, but do work in Safari (haven't checked built-in system explicitly)
Comment 16 Simon Fraser (smfr) 2023-05-03 09:48:41 PDT
To clarify, gesture events don’t work in open source builds. There’s a bit of Apple-internal code that’s necessary (and which I compiled with when testing).
Comment 17 Vladimir Prelovac 2023-05-03 10:18:08 PDT
(In reply to Simon Fraser (smfr) from comment #16)
> To clarify, gesture events don’t work in open source builds. There’s a bit
> of Apple-internal code that’s necessary (and which I compiled with when
> testing).

Thanks for confirming. That is the reason I opened this issue. 

Sorry, I see you marked it as WONTFIX but have not given any explanation why the open-source build could not enable this?
Comment 18 Vladimir Prelovac 2023-05-03 10:19:59 PDT
> There’s a bit
> of Apple-internal code that’s necessary (and which I compiled with when
> testing).

Can WebKit get access to this so that open source builds can enjoy gestures? It feels arbitrary to lock out such an important feature out of open-source builds.
Comment 19 Berkay Ozturk 2023-06-06 08:16:56 PDT
I'm not a WebKit developer but as an end-user I wanted to say that the lack of access to gesture events on open source builds is a big problem for people like me. I am using the Orion browser and I'm not able to properly use web applications like Google Maps. I would love to understand why gesture events are excluded from open source builds.
Comment 20 Simone Bianchin 2023-06-06 09:12:03 PDT
Yes please, this is a major issue for people that work with basic tools nowadays like Miro, Figma and everything that works with canvas. Please consider to fix
Comment 21 Luigi 2023-06-29 05:08:57 PDT
Hi team, it would be great to have this in some roadmap eventually, :many-thanks!
Comment 22 Adam 2023-09-10 09:00:40 PDT
+1 to fix this, this bug makes open source builds completely unusable on a daily basis. Such a basic function such as pinch-to-zoom is necessary as an OSX user - a large majority of sites now utilize that pinch-to-zoom functionality so not having it breaks the function of many many sites. Please fix this.
Comment 23 alex 2023-09-26 11:58:51 PDT
Just signed up to the Bugzilla to add my vote for fixing this. It's making a lot of highly interactive web apps basically unusable. :(
Comment 24 Sam Behrens 2023-10-06 21:16:19 PDT
This is a very big issue for me and I would love to see it addressed in the Open Source WebKit Builds.
Comment 25 Aaron 2023-10-08 08:58:01 PDT
Joining the crowd here in asking for this to be available for open source builds. It locks out critical functionality for us as users. Please add this!
Comment 26 Aaron 2023-10-08 08:58:20 PDT
Joining the crowd here in asking for this to be available for open source builds. It locks out critical functionality for us as users. Please add this!
Comment 27 Miguel Carneiro 2023-10-15 04:03:56 PDT
I have the same issue as others described below. I don't think more info is needed, but this seems to be a problem in sites such as:
- google maps
- figma
- and many others.

Please fix this as it seems to be fixed already in Safari.

Have an amazing week!
Comment 28 Steve Alexander 2023-11-29 14:57:49 PST
I'm having the same difficulty. I want to use the open source release of webkit for sites that use zoom gestures, such as Miro.
Comment 29 Oskar 2023-12-16 15:33:42 PST
The problem still persists on custom builds of WebKit
Comment 30 72bnp7fj@duck.com 2024-01-08 06:18:37 PST
The problem still exist and I really hope webkits can fix it! Happy New Year