This commit is contained in:
wangcongtao
2020-02-21 18:02:29 +08:00
parent 3aa3190f6b
commit 514018250b
2 changed files with 2 additions and 5 deletions

View File

@@ -220,8 +220,6 @@ public class MogoServiceProvider implements IMogoModuleProvider,
// 延时状态
private boolean mRefreshRemainingTimeStatus = false;
private boolean mTouchDownEvent = false;
@Override
public final Fragment createFragment( Context context, Bundle data ) {
return null;
@@ -394,7 +392,6 @@ 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 );
@@ -463,8 +460,7 @@ public class MogoServiceProvider implements IMogoModuleProvider,
mLastZoomLevel = zoom;
} else if ( mLastZoomLevel == zoom ) {
// 手动平移
if ( invokeRefreshWhenTranslationByUser( latLng ) && mTouchDownEvent ) {
mTouchDownEvent = false;
if ( invokeRefreshWhenTranslationByUser( latLng ) ) {
notifyRefreshData( latLng, getQueryRadius(), mCustomRefreshCallback );
mLastCustomRefreshCenterLocation = latLng;
}