@inizioevoke/astro-core 1.3.4 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inizioevoke/astro-core",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -86,9 +86,9 @@ class ScrollContainer implements IScrollContainer {
86
86
  const scrollHeight = this.#content.scrollHeight - getPaddingY(this.#content);
87
87
  const containerHeight = this.#container.clientHeight - getPaddingY(this.#container);
88
88
  const visibleRatio = containerHeight / scrollHeight;
89
- const thumbHeight = visibleRatio * containerHeight;
89
+ const thumbHeight = this.#container.getAttribute('data-evo-scroll-thumb-height') ? parseInt(this.#container.getAttribute('data-evo-scroll-thumb-height') as string, 10) : visibleRatio * containerHeight;
90
90
  this.#thumb.style.height = `${thumbHeight > 20 ? thumbHeight : 20}px`;
91
- this.#track.style.display = visibleRatio < 1 ? 'block' : 'none';
91
+ this.#track.style.display = this.#container.classList.contains('evo-scroll-track-visible') ? 'block' : visibleRatio < 1 ? 'block' : 'none';
92
92
  }
93
93
 
94
94
  #thumbMouseDown(e: MouseEvent) {
@@ -129,7 +129,7 @@ const getFilePaths = (() => {
129
129
  interface IntegrationProps {
130
130
  enabled?: boolean;
131
131
  }
132
- export default function ({ enabled = true }: IntegrationProps): AstroIntegration {
132
+ export default function ({ enabled = true }: IntegrationProps = {}): AstroIntegration {
133
133
  let astroConfig: AstroConfig;
134
134
 
135
135
  return {