opt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user