diff --git a/android/app/src/main/java/app/organicmaps/MwmActivity.java b/android/app/src/main/java/app/organicmaps/MwmActivity.java index a7d4bb8c0e..d721a92638 100644 --- a/android/app/src/main/java/app/organicmaps/MwmActivity.java +++ b/android/app/src/main/java/app/organicmaps/MwmActivity.java @@ -1311,6 +1311,16 @@ public class MwmActivity extends BaseMwmFragmentActivity Framework.nativeGetChoosePositionMode() == Framework.ChoosePositionMode.NONE; } + @Override + public boolean dispatchGenericMotionEvent(MotionEvent event) { + if (event.getActionMasked() == MotionEvent.ACTION_SCROLL) { + int exponent = event.getAxisValue(MotionEvent.AXIS_VSCROLL) < 0 ? -1 : 1; + Map.onScale(Math.pow(1.7f, exponent), event.getX(), event.getY(), true); + return true; + } + return super.onGenericMotionEvent(event); + } + @Override public boolean onTouch(View view, MotionEvent event) {