Skip to content

Commit a623c5c

Browse files
committed
优化 BaseDraggable 类中方法的顺序
1 parent 6e97769 commit a623c5c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

library/src/main/java/com/hjq/window/draggable/BaseDraggable.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,6 @@ protected boolean isFingerMove(float downX, float upX, float downY, float upY) {
468468
return Math.abs(downX - upX) >= minTouchSlop || Math.abs(downY - upY) >= minTouchSlop;
469469
}
470470

471-
/**
472-
* 判断当前悬浮窗是否可以移动到屏幕之外的地方
473-
*/
474-
protected boolean isSupportMoveOffScreen() {
475-
return mEasyWindow.hasWindowFlags(LayoutParams.FLAG_LAYOUT_NO_LIMITS);
476-
}
477-
478471
/**
479472
* 获取最小触摸距离
480473
*/
@@ -495,6 +488,13 @@ protected float getMinTouchDistance() {
495488
Resources.getSystem().getDisplayMetrics());
496489
}
497490

491+
/**
492+
* 判断当前悬浮窗是否可以移动到屏幕之外的地方
493+
*/
494+
protected boolean isSupportMoveOffScreen() {
495+
return mEasyWindow.hasWindowFlags(LayoutParams.FLAG_LAYOUT_NO_LIMITS);
496+
}
497+
498498
/**
499499
* 设置拖拽回调
500500
*/

0 commit comments

Comments
 (0)