mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(ionToggle): stop error in edge case of drag ending before raf
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
e.gesture.srcEvent.preventDefault();
|
||||
|
||||
ionic.requestAnimationFrame(function(amount) {
|
||||
if (!self._dragInfo) { return; }
|
||||
|
||||
var slidePageLeft = self.track.offsetLeft + (self.handle.offsetWidth / 2);
|
||||
var slidePageRight = self.track.offsetLeft + self.track.offsetWidth - (self.handle.offsetWidth / 2);
|
||||
|
||||
Reference in New Issue
Block a user