8000 Feature/pinch to zoom bug (#228) · WindowxDeveloper/Android@0e9252a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e9252a

Browse files
authored
Feature/pinch to zoom bug (duckduckgo#228)
* Formatting only * Fix pinch to zoom by handling all remaining MotionEvents
1 parent 24d7939 commit 0e9252a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ android {
5454
testOptions {
5555
unitTests.returnDefaultValues = true
5656

57-
if(USE_ORCHESTRATOR) {
57+
if (USE_ORCHESTRATOR) {
5858
execution 'ANDROID_TEST_ORCHESTRATOR'
5959
}
6060
}

app/src/main/java/com/duckduckgo/app/browser/DuckDuckGoWebView.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@ class DuckDuckGoWebView : WebView, NestedScrollingChild {
100100
MotionEvent.ACTION_DOWN -> {
101101
returnValue = super.onTouchEvent(event)
102102
lastY = eventY
103-
104103
startNestedScroll(ViewCompat.SCROLL_AXIS_VERTICAL)
105104
}
106105

107-
MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
106+
else -> {
108107
returnValue = super.onTouchEvent(event)
109108
stopNestedScroll()
110109
}

0 commit comments

Comments
 (0)
0