This commit is contained in:
wangcongtao
2020-02-21 16:37:00 +08:00
parent 94d3e000a7
commit 3aa3190f6b

View File

@@ -220,6 +220,8 @@ public class MogoServiceProvider implements IMogoModuleProvider,
// 延时状态
private boolean mRefreshRemainingTimeStatus = false;
private boolean mTouchDownEvent = false;
@Override
public final Fragment createFragment( Context context, Bundle data ) {
return null;
@@ -392,6 +394,7 @@ public class MogoServiceProvider implements IMogoModuleProvider,
public void onTouch( MotionEvent motionEvent ) {
switch ( motionEvent.getActionMasked() ) {
case MotionEvent.ACTION_DOWN:
mTouchDownEvent = true;
if ( mLastZoomLevel == 0 ) {
mLastZoomLevel = mUiController.getZoomLevel();
Logger.i( TAG, "初始化缩放级别 为:%f", mLastZoomLevel );
@@ -460,7 +463,8 @@ public class MogoServiceProvider implements IMogoModuleProvider,
mLastZoomLevel = zoom;
} else if ( mLastZoomLevel == zoom ) {
// 手动平移
if ( invokeRefreshWhenTranslationByUser( latLng ) ) {
if ( invokeRefreshWhenTranslationByUser( latLng ) && mTouchDownEvent ) {
mTouchDownEvent = false;
notifyRefreshData( latLng, getQueryRadius(), mCustomRefreshCallback );
mLastCustomRefreshCenterLocation = latLng;
}