@txstate-mws/svelte-components 1.5.0 → 1.5.1

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.
@@ -79,7 +79,7 @@ export function glue(el, { target, align = 'auto', cover = false, adjustparenthe
79
79
  store?.update(v => ({ ...v, valign, halign }));
80
80
  }
81
81
  const { destroy: watchDestroy } = watchForMutations(reposition);
82
- window.addEventListener('scroll', reposition);
82
+ document.addEventListener('scroll', reposition, { capture: true });
83
83
  return {
84
84
  update({ target: utarget, align: ualign = 'auto', cover: ucover = false, store: ustore }) {
85
85
  align = ualign;
@@ -98,7 +98,7 @@ export function glue(el, { target, align = 'auto', cover = false, adjustparenthe
98
98
  },
99
99
  destroy() {
100
100
  watchDestroy();
101
- window.removeEventListener('scroll', reposition);
101
+ document.removeEventListener('scroll', reposition);
102
102
  if (adjustparentheight) {
103
103
  if (formerMinHeight)
104
104
  parent.style.minHeight = formerMinHeight;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@txstate-mws/svelte-components",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Svelte components that are generically useful.",
5
5
  "scripts": {
6
6
  "prepublishOnly": "svelte-package",