@@ -19,25 +19,22 @@ private static void HandleGestureSettingsChanged(MapboxViewHandler handler, IMap
19
19
var mapView = handler . PlatformView . MapView ;
20
20
if ( mapView == null ) return ;
21
21
22
- var gestures = mapView . Gestures ( ) . GestureOptions ( ) ;
23
-
24
- gestures . DoubleTapToZoomInEnabled = view . GestureSettings . DoubleTapToZoomInEnabled ;
25
- gestures . DoubleTouchToZoomOutEnabled = view . GestureSettings . DoubleTouchToZoomOutEnabled ;
26
- gestures . FocalPoint = view . GestureSettings . FocalPoint ? . ToNSValue ( ) ;
27
- //gestures.IncreasePinchToZoomThresholdWhenRotating = view.GestureSettings.IncreasePinchToZoomThresholdWhenRotating;
28
- //gestures.IncreaseRotateThresholdWhenPinchingToZoom = view.GestureSettings.IncreaseRotateThresholdWhenPinchingToZoom;
29
- gestures . PanEnabled = view . GestureSettings . PinchToZoomEnabled ;
30
- //gestures.PinchToZoomDecelerationEnabled = view.GestureSettings.PinchToZoomDecelerationEnabled;
31
- gestures . PinchZoomEnabled = view . GestureSettings . PinchToZoomEnabled ;
32
- gestures . PitchEnabled = view . GestureSettings . PitchEnabled ;
33
- gestures . QuickZoomEnabled = view . GestureSettings . QuickZoomEnabled ;
34
- //gestures.RotateDecelerationEnabled = view.GestureSettings.RotateDecelerationEnabled;
35
- gestures . RotateEnabled = view . GestureSettings . RotateEnabled ;
36
- //gestures.ScrollDecelerationEnabled = view.GestureSettings.ScrollDecelerationEnabled;
37
- //gestures.ScrollEnabled = view.GestureSettings.ScrollEnabled;
38
- gestures . PanMode = view . GestureSettings . ScrollMode . ToNative ( ) ;
39
- gestures . SimultaneousRotateAndPinchZoomEnabled = view . GestureSettings . SimultaneousRotateAndPinchToZoomEnabled ;
40
- gestures . PanDecelerationFactor = view . GestureSettings . PanDecelerationFactor ;
22
+ var gestureOptions = new TMBGestureOptions (
23
+ panEnabled : view . GestureSettings . PinchScrollEnabled ,
24
+ pinchEnabled : false ,
25
+ rotateEnabled : view . GestureSettings . RotateEnabled ,
26
+ simultaneousRotateAndPinchZoomEnabled : view . GestureSettings . SimultaneousRotateAndPinchToZoomEnabled ,
27
+ pinchZoomEnabled : view . GestureSettings . PinchToZoomEnabled ,
28
+ pinchPanEnabled : false ,
29
+ pitchEnabled : view . GestureSettings . PitchEnabled ,
30
+ doubleTapToZoomInEnabled : view . GestureSettings . DoubleTapToZoomInEnabled ,
31
+ doubleTouchToZoomOutEnabled : view . GestureSettings . DoubleTouchToZoomOutEnabled ,
32
+ quickZoomEnabled : view . GestureSettings . QuickZoomEnabled ,
33
+ panDecelerationFactor : UIScrollView . DecelerationRateNormal ,
34
+ panMode : view . GestureSettings . ScrollMode . ToNative ( ) ,
35
+ focalPoint : view . GestureSettings . FocalPoint ? . ToNSValue ( )
36
+ ) ;
37
+ mapView . Gestures ( ) . GestureOptions = gestureOptions ;
41
38
}
42
39
43
40
private static void HandleLightChanged ( MapboxViewHandler handler , IMapboxView view )
0 commit comments