From 99e70f4489ce210e514c9194cdac288d2de651c4 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 2 Jul 2019 00:21:48 -0700 Subject: Remove nested scrolling on prescroll --- app/src/main/kotlin/com/pitchedapps/frost/web/NestedWebView.kt | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/src/main/kotlin') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/NestedWebView.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/NestedWebView.kt index 6e7fc0b6..7c3c48e7 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/NestedWebView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/NestedWebView.kt @@ -72,8 +72,6 @@ open class NestedWebView @JvmOverloads constructor( // NestedPreScroll if (dispatchNestedPreScroll(0, deltaY, scrollConsumed, scrollOffset)) { deltaY -= scrollConsumed[1] - event.offsetLocation(0f, -scrollOffset[1].toFloat()) - nestedOffsetY += scrollOffset[1] } lastY = eventY - scrollOffset[1] returnValue = super.onTouchEvent(event) -- cgit v1.2.3