Swipe item too sensitive, it is hard to do onClick
See original GitHub issueI use a Recycler view where user can do click, long click and swipe. I don’t have any problem with long click and swipe, but when I try to do a click, four out five times, I end up getting a swipe gesture instead a click.
I tried app:minDistRequestDisallowParent=20dp
but I do not notice any improvement. Also I tried setMinFlingVelocity
without success.
Any idea about what I’m doing wrong? Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15
Top Results From Across the Web
Swipe delete on Recycleview is very sensitive - Stack Overflow
The problem is that the action is very sensitive - When you click or drag a little bit the card it do the...
Read more >onclick function too sensitive - Genuitec
The workaround is to use phoneui.alert() which runs asynchronously in native apps or maybe put your javascript alert in a setTimeout(). I revised...
Read more >Well-controlled scrolling with CSS Scroll Snap - web.dev
CSS Scroll Snap allows web developers to create well-controlled scroll experiences by declaring scroll snapping positions.
Read more >Pressable - React Native
How it works ... On an element wrapped by Pressable : ... After pressing onPressIn , one of two things will happen: ......
Read more >Handling swipe and click with JavaScript - Jon Gjengset
These are what break your onclick handler (or href), since they tell the browser not to do whatever it would normally have done...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
private float mX = -1,mY = -1; @Override public boolean onInterceptTouchEvent(MotionEvent ev) {
This is my changed code. good luck.
I guess people should use https://github.com/daimajia/AndroidSwipeLayout . This repos have many issues with android version and devices. And this is not maintain now.