Page MenuHomePhabricator

[native] Migrate pinch gesture handling in FullScreenViewModal
ClosedPublic

Authored by angelika on Feb 6 2025, 5:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 4, 4:46 AM
Unknown Object (File)
Thu, Apr 3, 12:18 PM
Unknown Object (File)
Thu, Apr 3, 4:25 AM
Unknown Object (File)
Fri, Mar 14, 7:59 AM
Unknown Object (File)
Fri, Mar 14, 7:59 AM
Unknown Object (File)
Fri, Mar 14, 7:58 AM
Unknown Object (File)
Wed, Mar 12, 9:52 AM
Unknown Object (File)
Wed, Mar 12, 9:02 AM
Subscribers

Details

Summary

https://linear.app/comm/issue/ENG-8150/convert-fullscreenviewmodal-to-reanimated-2-syntax

Migrate`pinchUpdate` method which updates image scale when pinch gesture is in progress based on the delta between current and last pinch scale, just like in the original implementation.

Depends on D14302

Test Plan

Tested after migration: verify pinch gesture works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

angelika held this revision as a draft.
angelika added inline comments.
native/components/full-screen-view-modal.react.js
89–101 ↗(On Diff #46947)

The math for delta calculations are taken from here

angelika marked an inline comment as not done.

Rebase & bugfixes

ashoat added inline comments.
native/components/full-screen-view-modal.react.js
1191–1192 ↗(On Diff #47081)

Looks like updating these is handled in D14311

This revision is now accepted and ready to land.Feb 14 2025, 12:51 AM