intelliwaketssveltekitv25 1.0.89 → 1.0.90

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.
@@ -67,7 +67,7 @@
67
67
  clientWidth
68
68
  tabItems
69
69
 
70
- if (currentKey && isVisible) {
70
+ if (currentKey && (isVisible || clientWidth > 0)) {
71
71
  setIndicatorStyle().then(() => {
72
72
  })
73
73
  } else {
@@ -82,7 +82,10 @@
82
82
  isVisible = entry.isIntersecting
83
83
  })
84
84
  },
85
- { threshold: 0 }
85
+ {
86
+ threshold: [0, 0.1],
87
+ rootMargin: '50px'
88
+ }
86
89
  )
87
90
 
88
91
  if (controlElement) {
@@ -9,7 +9,6 @@
9
9
  import Icon from './Icon.svelte'
10
10
  import { cubicInOut } from 'svelte/easing'
11
11
  import { fly } from 'svelte/transition'
12
- import path from 'node:path'
13
12
 
14
13
  let {
15
14
  tabHrefs,
@@ -58,7 +57,10 @@
58
57
  isVisible = entry.isIntersecting
59
58
  })
60
59
  },
61
- { threshold: 0 }
60
+ {
61
+ threshold: [0, 0.1],
62
+ rootMargin: '50px'
63
+ }
62
64
  )
63
65
 
64
66
  if (controlElement) {
@@ -223,7 +225,7 @@
223
225
  clientWidth
224
226
  tabHrefs
225
227
 
226
- if (pathAnalyzer?.activePageSlug && isVisible) {
228
+ if (pathAnalyzer?.activePageSlug && (isVisible || clientWidth > 0)) {
227
229
  setIndicatorStyle().then(() => {
228
230
  })
229
231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "exports": {