@thinkpixellab-public/px-vue 3.0.47 → 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.
@@ -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);
@@ -100,6 +102,21 @@ export default {
100
102
  tolerance: tolerance || 1.1,
101
103
  };
102
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
+
103
120
  return null;
104
121
  },
105
122
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "3.0.47",
3
+ "version": "3.0.48",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": "Pixel Lab",
6
6
  "license": "MIT",