Closed putuoka closed 2 years ago
always X:0 & Y:0 when double tap and then pan make it jump to center in zoom pan
translationX.value = withTiming( -1 * (maximumZoomScale * (e.x - viewWidth.value / 2)), ); translationY.value = withTiming( -1 * (maximumZoomScale * (e.y - viewHeight.value / 2)), );
@putuoka Pushed a fix. Can you try 0.1.2?
perfect! Thank you!
always X:0 & Y:0 when double tap and then pan make it jump to center in zoom pan