@blinkk/degu
Advanced tools
Comparing version 0.0.312 to 0.0.313
@@ -7,2 +7,3 @@ export interface ScrollToOnFocusConfig { | ||
setTabIndex?: boolean; | ||
setAriaRole?: string; | ||
debug: boolean; | ||
@@ -9,0 +10,0 @@ } |
@@ -21,2 +21,5 @@ "use strict"; | ||
} | ||
if (config.setAriaRole) { | ||
el.setAttribute('aria-role', config.setAriaRole); | ||
} | ||
this.watcher.add({ | ||
@@ -39,2 +42,11 @@ element: el, | ||
} | ||
if (this.debug) { | ||
this.watcher.add({ | ||
element: window, | ||
on: 'scroll', | ||
callback: () => { | ||
console.log('progress', dom_1.dom.getElementScrolledPercent(this.element, this.topProgressOffset, this.bottomProgressOffset)); | ||
} | ||
}); | ||
} | ||
}); | ||
@@ -41,0 +53,0 @@ } |
{ | ||
"name": "@blinkk/degu", | ||
"version": "0.0.312", | ||
"version": "0.0.313", | ||
"description": "A general utility library for interactive websites, with a focus on performance.", | ||
@@ -5,0 +5,0 @@ "author": "Blinkk <hello@blinkk.com>", |
580346
16122