Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@58fe/v5", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "description": "vue components", |
@@ -557,3 +557,2 @@ /* | ||
self.__computeScrollMax(); | ||
// Refresh scroll position | ||
@@ -1341,3 +1340,2 @@ self.scrollTo(self.__scrollLeft, self.__scrollTop, true); | ||
var diffZoom = zoom - oldZoom; | ||
var step = function(percent, now, render) { | ||
@@ -1348,3 +1346,2 @@ if (render) { | ||
self.__zoomLevel = oldZoom + diffZoom * percent; | ||
// Push values out | ||
@@ -1508,3 +1505,12 @@ if (self.__callback) { | ||
if (self.__didDecelerationComplete) { | ||
self.options.scrollingComplete(); | ||
if (self.options.snapping) { | ||
if ( | ||
!(self.__scrollLeft % self.__snapWidth) && | ||
!(self.__scrollTop % self.__snapHeight) | ||
) { | ||
self.options.scrollingComplete(); | ||
} | ||
} else { | ||
self.options.scrollingComplete(); | ||
} | ||
} | ||
@@ -1511,0 +1517,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
121996
2308