()
| 708 | data: _abs(endScroll - scroll), // record the distance so that if another snap tween occurs (conflict) we can prioritize the closest snap. |
| 709 | onInterrupt: () => snapDelayedCall.restart(true) && onInterrupt && _callback(self, onInterrupt), |
| 710 | onComplete() { |
| 711 | self.update(); |
| 712 | lastSnap = scrollFunc(); |
| 713 | if (animation && !isToggle) { // the resolution of the scrollbar is limited, so we should correct the scrubbed animation's playhead at the end to match EXACTLY where it was supposed to snap |
| 714 | scrubTween ? scrubTween.resetTo("totalProgress", endValue, animation._tTime / animation._tDur) : animation.progress(endValue); |
| 715 | } |
| 716 | snap1 = snap2 = animation && !isToggle ? animation.totalProgress() : self.progress; |
| 717 | onSnapComplete && onSnapComplete(self); |
| 718 | onComplete && _callback(self, onComplete); |
| 719 | } |
| 720 | }, scroll, change1 * change, endScroll - scroll - change1 * change); |
| 721 | onStart && _callback(self, onStart, tweenTo.tween); |
| 722 | } |
nothing calls this directly
no test coverage detected