You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
When Scrollview is touched to scoll items up or down, sometimes if motion is not strictly veritcal (maybe slightly tilting to left or right) it closes the slidinglayer. I dont want this.
Any listener to give all touch events to scrollview and not to slidinglayer?
The text was updated successfully, but these errors were encountered:
Damn. Same problem here. One workaround I found was disallowing touch interception of sliding layer on scrollview touch event.
scrollView.setOnTouchListener { view, motionEvent -> if (motionEvent.action == MotionEvent.ACTION_DOWN) sliding_layer.requestDisallowInterceptTouchEvent(true) false }
But doing so will restrict us from closing the sliding layer with touch, I close the sliding layer in the overridden onBackPressed
override fun onBackPressed() { when { sliding_layer.isOpened -> sliding_layer.closeLayer(true) else -> super.onBackPressed() } }
I know this is bad. Please provide feedback when some solution is found.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When Scrollview is touched to scoll items up or down, sometimes if motion is not strictly veritcal (maybe slightly tilting to left or right) it closes the slidinglayer. I dont want this.
Any listener to give all touch events to scrollview and not to slidinglayer?
The text was updated successfully, but these errors were encountered: