Okay, so big apologies in advance [IF] I am mistaken, but unfortunately that doesn’t seem to be the case…
So if I understand correctly ScrollView has 3 phases:
–event.phase == “began”: Triggered when the user starts/begins dragging
–event.phase == “moved”: Triggered when the user is actively dragging
–event.phase == “ended”: Triggered when the user released and thereby stopped dragging
Now, we notice that ScrollView comes with a variable “friction”, whose default value is 0.973.
(Sorry for the rant, but I am obliged to write this: The name “friction” is a HORRIBLE, HORRIBLE choice for the variable. The name “friction” implies that, if the value is increased, the movement will be slowed down because, well…friction was increased LOL But NO, if you increase “friction”, friction is DECREASED. I mean seriously. Shame on whoever came up with that idea. The variable should be called “sliding” or something to that effect. Or better yet, make friction increase when you increase “friction”.)
Sorry for the rant. Going back to my point, whenever you set “friction” to a non-zero value (or don’t set the value at all), there will be sliding.
So my question/critique is this: Isn’t there a (very important) phase dedicated for when the ScrollView object stops sliding missing? The absence of said phase (unnecessarily) complicates my life. It was a shock to learn that Corona doesn’t support this.
My pseudo “solution” (which really isn’t a solution at all) was to make “friction = 0”, there by guaranteeing the coincidence of “ended” and the missing phase, which I will call “stopped”.
However, this is not visually pleasing, and damages the user experience in my opinion.
Again, I apologize if the phase I am talking about does exist, but I could not find anything.
On the other hand, it if doesn’t, which seems to be the case, I strongly, STRONGLY urge the Corona staff to add a fourth phase, because it is NECESSARY, and it will make so many Corona developers, including myself, happy.
Thank you.
KC