-
Notifications
You must be signed in to change notification settings - Fork 1.3k
After fling support --- Issue in flipping #20
Comments
Yes. It's a bug. Thanks for reporting it. |
Ok. Thanks for responding quickly. Actually i was trying from past 3 days to add fling support with the old library before fling added, but i too faced the same issues when i try to change things there. When i came to know fling support is added to the library, i thought to look in to it, tested to see if it solved issues i faced. Anyhow, is there any documentation on the library procedures/methods. |
I finished a small patch to work around the issue. I'm actually not fully satisfied with the fix. I re-observed the behavior of FlipBoard, and I believe a velocity tracker is used to detect fling gesture. |
Flipboard definitely doesn't use velocity tracking. You easily see this by slowly scrolling. The problem here is related to the fact that when scrolling very slowly, its possible that the last actual touch movement was opposite of what you expect. Meaning, when you are scrolling up, and when your finger comes to a stop, it may actually slightly move down before lifting. The best way to fix this is to check for unintended movement. The key is the line that I added:
Now that I'm thinking about it, this should really be |
Looks like that's what you did in 138494b. Sorry, didn't notice that before commenting. :-) |
Thanks for your detailed explanation. From my observation, fling behavior of Flipboard are different on IOS and android. There is no velocity detection on iOS but its android version may utilize one. For example, I can slowly scroll a page up in Fipboard android; it goes back as long as the scrolling angle is less than 90 degree. |
Do you have the latest version of Flipboard on Android? This is not the case (I'm not sure that it ever was, to be honest). I will try to make a video to prove it, when I get a chance, but I can easily get it to flip up by scrolling very slowly and not passing 90 degrees. |
@iPaulPro I don't think so. Even i have the latest flipboard version on my htc one v. I see when u really scroll slowly without taking out your finger, it doesn't flip up until it cross 90, i.e, width/2. At the same time when u fast swipe a little amount too, it flips up/down. |
Interesting. I just tried on the Nexus One, and the behavior is different than on the Galaxy Nexus. On the N1, it behaves the way you describe. Hm... Edit: Referring to this library, not Flipboard. |
Okay, so I just installed Flipboard on the N1 and it also works the way this library does (at master). The behavior of Flipboars's flip changes between platforms. Considering that the current library works the same as Flipboard on 4.2 and 2.3, respectively, it may actually already be correct. I'm going to test Flibboard and FlipView on a bunch of devices and report back soon. |
I'm using 1.9.10, 221 Flipview will go with your solution as using velocity tracker adds code complexity without significant UX improvement. |
Thanks for the fix. |
Please check the images below.
The text was updated successfully, but these errors were encountered: