You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Establish ZoomableEventListener to detect start and finish zooming events
Summary:
## Context
- We want to test Pinch to Zoom on reels ads, in order to bring more consistency across the app.
- This feature is already launched on reels organic and home feed, and is being tested on stories too.
## This Diff
- In `ClipsItemGestureDetector`, when an `onTouchEvent()` is received, the `zoomableGestureController` calls `onTouch`, which then calls `listeners.any { it.onTouchEvent(event) } ` in `ZoomableTouchGestureListener`. This ends up calling the zoomableTouchListener overriden onTouchEvent function within LithoZoomableController, and inside this it ends up calling the necessary functions to start zoom methods in ZoomableViewBaseController
- We now want to do the reverse.
- To notify `ClipsItemComponent` when zooming starts and finishes, we will use a callback interface. We will create a new interface ` ZoomableEventListener`with two methods: onZoomStarted() and onZoomFinished() within the `ZoomableViewBaseController`.
Reviewed By: fbcbl
Differential Revision: D68932919
fbshipit-source-id: 066a9d7c1f48c72479cfd66d0501fef050324b7b
0 commit comments