@1001-digital/components 2.0.1 → 2.0.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1001-digital/components",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "sideEffects": [
@@ -9,6 +9,7 @@
9
9
  position: relative;
10
10
  display: flex;
11
11
  align-items: center;
12
+ gap: var(--border-width);
12
13
 
13
14
  & :deep(input + .icon) {
14
15
  position: absolute;
@@ -42,7 +43,6 @@
42
43
  + input,
43
44
  + button,
44
45
  + a {
45
- margin-inline-start: calc(-1 * var(--border-width));
46
46
  border-start-start-radius: 0 !important;
47
47
  border-end-start-radius: 0 !important;
48
48
  }
@@ -127,6 +127,9 @@ onMounted(() => {
127
127
  }
128
128
  }
129
129
 
130
+ // Prevent browser back/forward navigation gesture
131
+ e.preventDefault()
132
+
130
133
  const w = sidebarWidth.value
131
134
  if (!w) return
132
135
 
@@ -168,7 +171,7 @@ onMounted(() => {
168
171
  }
169
172
 
170
173
  document.addEventListener('touchstart', onTouchStart, { passive: true })
171
- document.addEventListener('touchmove', onTouchMove, { passive: true })
174
+ document.addEventListener('touchmove', onTouchMove, { passive: false })
172
175
  document.addEventListener('touchend', onTouchEnd)
173
176
 
174
177
  cleanupSwipe = () => {