@thinkpixellab-public/px-vue 3.0.46 → 3.0.48
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 +18 -0
- package/package.json +1 -1
package/components/PxSlides.vue
CHANGED
|
@@ -84,6 +84,8 @@ export default {
|
|
|
84
84
|
},
|
|
85
85
|
computed: {
|
|
86
86
|
lethargyOverrides() {
|
|
87
|
+
// query strings overrides
|
|
88
|
+
|
|
87
89
|
const stability = parseFloat(this.$route.query?.scrollStability);
|
|
88
90
|
const sensitivity = parseFloat(this.$route.query?.scrollSensitivity);
|
|
89
91
|
const tolerance = parseFloat(this.$route.query?.scrollTolerance);
|
|
@@ -93,12 +95,28 @@ export default {
|
|
|
93
95
|
console.log(`stability: ${stability || 8}`);
|
|
94
96
|
console.log(`sensitivity: ${sensitivity || 100}`);
|
|
95
97
|
console.log(`tolerance: ${tolerance || 1.1}`);
|
|
98
|
+
|
|
96
99
|
return {
|
|
97
100
|
stability: stability || 8,
|
|
98
101
|
sensitivity: sensitivity || 100,
|
|
99
102
|
tolerance: tolerance || 1.1,
|
|
100
103
|
};
|
|
101
104
|
}
|
|
105
|
+
|
|
106
|
+
// windows overrides
|
|
107
|
+
|
|
108
|
+
if (
|
|
109
|
+
navigator.userAgent.indexOf('Win') != -1 ||
|
|
110
|
+
this.$route.query?.scroll == 'windows'
|
|
111
|
+
) {
|
|
112
|
+
//console.log('[Windows scroll values enabled.]');
|
|
113
|
+
return {
|
|
114
|
+
stability: stability || 8,
|
|
115
|
+
sensitivity: sensitivity || 20,
|
|
116
|
+
tolerance: tolerance || 0.1,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
102
120
|
return null;
|
|
103
121
|
},
|
|
104
122
|
},
|