BautistaJesus / dashclock

Automatically exported from code.google.com/p/dashclock
Apache License 2.0
0 stars 0 forks source link

SwipeToDismiss sensitivity #654

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SwipeToDismiss triggers pretty easily, therefore it's hard to scroll through 
extensions without accidentally deleting some. I would like to hear your 
thoughts on this - would be an interesting ADiA topic too ;-)

Maybe something like 

if(Math.abs(deltaY) < Math.abs(deltaX) / 2){ ...

after line 284 (SwipeDismissListViewTouchListener.java) would help.

In addition I guess

&& scrollState != AbsListView.OnScrollListener.SCROLL_STATE_FLING 

at 151 would also improve it a little bit.

nitpicking:

at 298: mDownView.setTranslationX(deltaX - mSlop); //no jumping

Original issue reported on code.google.com by rube...@gmail.com on 1 Dec 2013 at 10:24

GoogleCodeExporter commented 9 years ago
Hm, mind sharing this as a pull request here? 
https://github.com/romannurik/Android-SwipeToDismiss

Original comment by roman.nurik on 1 Dec 2013 at 5:26