summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CustomRecyclerView.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CustomRecyclerView.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CustomRecyclerView.kt
index 710bb834d0..dd0392c3bb 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CustomRecyclerView.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/CustomRecyclerView.kt
@@ -22,6 +22,10 @@ class CustomRecyclerView : RecyclerView, ListenableScrollableView {
override fun onScrolled(horizontalDelta: Int, verticalDelta: Int) {
super.onScrolled(horizontalDelta, verticalDelta)
+ dispatchScrollEvent(horizontalDelta, verticalDelta)
+ }
+
+ private fun dispatchScrollEvent(horizontalDelta: Int, verticalDelta: Int) {
val oldHorizontalScrollOffset = horizontalScrollOffset
val oldVerticalScrollOffset = verticalScrollOffset