@max-ts/svelte 1.10.4 → 1.10.5

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.
@@ -432,7 +432,7 @@ img, picture, video, canvas {
432
432
  height: var(--spacing-7);
433
433
  padding: var(--spacing-1) var(--spacing-2);
434
434
  border-radius: var(--radius-small);
435
- font-size: var(--fontSize-xs);
435
+ font-size: var(--fontSize-sm);
436
436
  }
437
437
  .styles_buttonSizes_medium__16himhaa {
438
438
  height: var(--spacing-9);
@@ -31,7 +31,7 @@ function Content($$anchor, $$props) {
31
31
  const style = $.derived(() => $.get(position) ? { transform: `translateY(${$.get(position)}px)` } : void 0);
32
32
  function handleTouchStart(event) {
33
33
  $.set(isDragging, true);
34
- $.set(startPosition, event.touches[0]?.clientY ?? null, true);
34
+ $.set(startPosition, event.touches[0]?.clientY, true);
35
35
  }
36
36
  function handleTouchMove(event) {
37
37
  const clientY = event.touches[0]?.clientY ?? $.get(position);
@@ -39,7 +39,7 @@ function Content($$anchor, $$props) {
39
39
  }
40
40
  function handleTouchEnd() {
41
41
  $.set(isDragging, false);
42
- if ($.get(position) && $.get(startPosition) && $.get(position) - $.get(startPosition) > swipeCloseThreshold()) drawer?.close();
42
+ if ($.get(position) && $.get(position) > swipeCloseThreshold()) drawer?.close();
43
43
  $.set(startPosition, void 0);
44
44
  $.set(position, void 0);
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/svelte",
3
- "version": "1.10.4",
3
+ "version": "1.10.5",
4
4
  "type": "module",
5
5
  "description": "Svelte component library.",
6
6
  "author": "Tsepelev Maksim",