Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fbbad4b0c0
2 changed files with 7 additions and 1 deletions
|
@ -86,7 +86,7 @@ public class MultiTouchSupport {
|
||||||
Integer pointCount = (Integer) getPointerCount.invoke(event);
|
Integer pointCount = (Integer) getPointerCount.invoke(event);
|
||||||
if(pointCount < 2){
|
if(pointCount < 2){
|
||||||
if(inZoomMode){
|
if(inZoomMode){
|
||||||
//listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
listener.onZoomOrRotationEnded(zoomRelative, angleRelative);
|
||||||
inZoomMode = false;
|
inZoomMode = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -862,6 +862,12 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
|
||||||
layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox());
|
layers.get(i).onTouchEvent(event, getCurrentRotatedTileBox());
|
||||||
}
|
}
|
||||||
gestureDetector.onTouchEvent(event);
|
gestureDetector.onTouchEvent(event);
|
||||||
|
} else {
|
||||||
|
MotionEvent cancelEvent == MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis() + 100, MotionEvent.ACTION_CANCEL, 0.0f, 0.0f, 0);
|
||||||
|
for (int i = layers.size() - 1; i >= 0; i--) {
|
||||||
|
layers.get(i).onTouchEvent(cancelEvent, getCurrentRotatedTileBox());
|
||||||
|
}
|
||||||
|
gestureDetector.onTouchEvent(cancelEvent);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue