emacroh5lib 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -200,8 +200,8 @@
|
|
200
200
|
},
|
201
201
|
// Reset position
|
202
202
|
resetPosition() {
|
203
|
-
let image = this.image
|
204
|
-
|
203
|
+
let image = this.image;
|
204
|
+
let oldTransform = this.getCurrentTransform(image);
|
205
205
|
|
206
206
|
this.setStyleByName(image, "top", "50%");
|
207
207
|
this.setStyleByName(image, "left", "50%");
|
@@ -328,13 +328,15 @@
|
|
328
328
|
this.judgeThumbnailListMove(lastIndex, this.index);
|
329
329
|
|
330
330
|
setTimeout(() => {
|
331
|
-
this.resetZoom();
|
332
331
|
|
333
332
|
this.setStyleByName(this.image, "width", this.currentData.width);
|
334
333
|
this.setStyleByName(this.image, "height", this.currentData.height);
|
335
334
|
this.setStyleByName(this.image, "left", this.currentData.left);
|
336
335
|
this.setStyleByName(this.image, "top", this.currentData.top);
|
337
336
|
this.setTransform(this.image, this.currentData.transform);
|
337
|
+
|
338
|
+
this.resetZoom();
|
339
|
+
this.resetPosition();
|
338
340
|
}, 100);
|
339
341
|
},
|
340
342
|
// To judge thumbnail list move
|