@thinkpixellab-public/px-vue 3.0.44 → 3.0.45
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/components/PxSlides.vue +9 -6
- package/package.json +1 -1
package/components/PxSlides.vue
CHANGED
|
@@ -202,22 +202,25 @@ export default {
|
|
|
202
202
|
if (check !== this.lethargyPrevCheck) {
|
|
203
203
|
if (check) {
|
|
204
204
|
if (check > 0) {
|
|
205
|
-
this.previous();
|
|
205
|
+
this.previous(false);
|
|
206
206
|
} else {
|
|
207
|
-
this.next();
|
|
207
|
+
this.next(false);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
this.lethargyPrevCheck = check;
|
|
213
|
+
|
|
214
|
+
e.stopPropagation();
|
|
215
|
+
e.preventDefault();
|
|
213
216
|
},
|
|
214
217
|
|
|
215
|
-
next() {
|
|
216
|
-
this.selectOffsetSafe(1, this.loop);
|
|
218
|
+
next(loopOverride = null) {
|
|
219
|
+
this.selectOffsetSafe(1, loopOverride === null ? this.loop : loopOverride);
|
|
217
220
|
},
|
|
218
221
|
|
|
219
|
-
previous() {
|
|
220
|
-
this.selectOffsetSafe(-1, this.loop);
|
|
222
|
+
previous(loopOverride = null) {
|
|
223
|
+
this.selectOffsetSafe(-1, loopOverride === null ? this.loop : loopOverride);
|
|
221
224
|
},
|
|
222
225
|
|
|
223
226
|
// returns the index of the item relative to the selected item, if looped
|