diff --git a/krcview/src/main/java/com/bytedance/krcview/KrcView.java b/krcview/src/main/java/com/bytedance/krcview/KrcView.java index af9381e..0292e33 100644 --- a/krcview/src/main/java/com/bytedance/krcview/KrcView.java +++ b/krcview/src/main/java/com/bytedance/krcview/KrcView.java @@ -807,7 +807,6 @@ private void tryToShowLocatedView() { } - private void tryToHideLocatedViewDelay() { if (locatedView == null || locatedView.getVisibility() != VISIBLE) { return; @@ -861,7 +860,11 @@ private void notifyDragging() { } final KrcLineView cur = getLocatedItemView(); if (cur != null) { - onDraggingListener.onDragging(KrcView.this, locatedItemView != cur, cur.krcLineInfo, + final boolean positionChanged = locatedItemView != cur; + if (positionChanged) { + locatedItemView = cur; + } + onDraggingListener.onDragging(KrcView.this, positionChanged, cur.krcLineInfo, cur.bindPosition); } } @@ -883,6 +886,7 @@ private void updateLocateViewTopOffset() { requestLayout(); } } + public interface onDraggingListener { /**