From f8cd74912c3026aaf27124d87d13a031d588df28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 20 Jul 2023 18:00:52 +0200 Subject: [PATCH] Prevent cases of both drawer and page change occurring on diagonal fling --- .../com/simplemobiletools/launcher/activities/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt index e8c72af..51f5e62 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt @@ -712,10 +712,12 @@ class MainActivity : SimpleActivity(), FlingListener { } override fun onFlingRight() { + mIgnoreUpEvent = true home_screen_grid.prevPage(redraw = true) } override fun onFlingLeft() { + mIgnoreUpEvent = true home_screen_grid.nextPage(redraw = true) }