emacroh5lib 1.0.58 → 1.0.59
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
@@ -164,6 +164,13 @@
|
|
164
164
|
|
165
165
|
resolve("");
|
166
166
|
imageObject.onload = null
|
167
|
+
|
168
|
+
if (i == 0) {
|
169
|
+
this.switchAction("next");
|
170
|
+
setTimeout(() => {
|
171
|
+
this.switchAction("prev");
|
172
|
+
}, 100);
|
173
|
+
}
|
167
174
|
};
|
168
175
|
|
169
176
|
imageObject.onerror = function (event) {
|
@@ -189,11 +196,6 @@
|
|
189
196
|
const { width, height } = this.listDataCache[index];
|
190
197
|
this.setStyleByName(this.image, "width", width);
|
191
198
|
this.setStyleByName(this.image, "height", height);
|
192
|
-
|
193
|
-
setTimeout(() => {
|
194
|
-
this.resetZoom();
|
195
|
-
this.resetPosition();
|
196
|
-
}, 100);
|
197
199
|
})
|
198
200
|
|
199
201
|
Promise.race(promises).then((data) => {
|
@@ -203,11 +205,6 @@
|
|
203
205
|
const { width, height } = this.listDataCache[index];
|
204
206
|
this.setStyleByName(this.image, "width", width);
|
205
207
|
this.setStyleByName(this.image, "height", height);
|
206
|
-
|
207
|
-
// setTimeout(() => {
|
208
|
-
// this.resetZoom();
|
209
|
-
// this.resetPosition();
|
210
|
-
// }, 100);
|
211
208
|
})
|
212
209
|
|
213
210
|
},
|