Fixed elevation issue when going into manga details

This commit is contained in:
Jay 2020-04-24 18:18:34 -04:00
parent 9586b564ed
commit 226eacdfcb

View file

@ -108,6 +108,8 @@ fun Controller.scrollViewWith(
super.onChangeStart(controller, changeHandler, changeType) super.onChangeStart(controller, changeHandler, changeType)
if (changeType.isEnter) if (changeType.isEnter)
elevateFunc(elevate) elevateFunc(elevate)
else
elevationAnim?.cancel()
} }
}) })
elevateFunc(recycler.canScrollVertically(-1)) elevateFunc(recycler.canScrollVertically(-1))