Skip to content

Commit 55fabd1

Browse files
committed
优化细节 提供 scrollTop方法
1 parent 0bc6a97 commit 55fabd1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webviewscroll/src/main/java/com/example/webviewscroll/WebScrollLayout.java

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ public void scrollTop(){
204204
recyclerView.scrollToPosition(0);
205205
mDispatchWebView.scrollTo(0, 0);
206206
if (mDispatchWebView.isScroll()){
207+
208+
Log.d("TAG","滑动到顶部,获取触摸事件");
207209
mDispatchWebView.ignoreTouchCancel(true);
208210
isIntercept = true;
209211
}

0 commit comments

Comments
 (0)