mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-04-05 05:41:00 +02:00
Merge pull request #89 from esensar/fix/drawer-on-page-change
Prevent cases of both drawer and page change occurring on diagonal fling
This commit is contained in:
commit
a3c7aa0d5d
@ -712,10 +712,12 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onFlingRight() {
|
override fun onFlingRight() {
|
||||||
|
mIgnoreUpEvent = true
|
||||||
home_screen_grid.prevPage(redraw = true)
|
home_screen_grid.prevPage(redraw = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onFlingLeft() {
|
override fun onFlingLeft() {
|
||||||
|
mIgnoreUpEvent = true
|
||||||
home_screen_grid.nextPage(redraw = true)
|
home_screen_grid.nextPage(redraw = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user