Comparing version 0.4.42 to 0.4.43
@@ -172,4 +172,4 @@ /* eslint-disable no-void */ | ||
}; | ||
let anchorIndex = undefined; | ||
let anchorTimerId = 0; | ||
let anchorIndex; | ||
let anchorTimerId = null; | ||
function scrollToIndex(index, behavior, debounce) { | ||
@@ -187,3 +187,3 @@ const { value: ft } = finweckTreeRef; | ||
anchorIndex = index; | ||
if (anchorTimerId) { | ||
if (anchorTimerId !== null) { | ||
window.clearTimeout(anchorTimerId); | ||
@@ -193,3 +193,3 @@ } | ||
anchorIndex = undefined; | ||
anchorTimerId = 0; | ||
anchorTimerId = null; | ||
}, 16); // use 0 ms may be ealier than resize callback... | ||
@@ -255,3 +255,3 @@ const { scrollTop, offsetHeight } = listElRef.value; | ||
const listEl = listElRef.value; | ||
if (listEl) { | ||
if (listEl != null) { | ||
if (anchorIndex === undefined) { | ||
@@ -296,4 +296,5 @@ const previousHeightSum = ft.sum(index); | ||
const listEl = listElRef.value; | ||
if (listEl) { | ||
if (listEl != null) { | ||
listEl.scrollTop += e.deltaY / ensureWheelScale(); | ||
listEl.scrollLeft += e.deltaX / ensureWheelScale(); | ||
syncViewport(); | ||
@@ -300,0 +301,0 @@ wheelCatched = true; |
@@ -177,4 +177,4 @@ "use strict"; | ||
}; | ||
let anchorIndex = undefined; | ||
let anchorTimerId = 0; | ||
let anchorIndex; | ||
let anchorTimerId = null; | ||
function scrollToIndex(index, behavior, debounce) { | ||
@@ -192,3 +192,3 @@ const { value: ft } = finweckTreeRef; | ||
anchorIndex = index; | ||
if (anchorTimerId) { | ||
if (anchorTimerId !== null) { | ||
window.clearTimeout(anchorTimerId); | ||
@@ -198,3 +198,3 @@ } | ||
anchorIndex = undefined; | ||
anchorTimerId = 0; | ||
anchorTimerId = null; | ||
}, 16); // use 0 ms may be ealier than resize callback... | ||
@@ -260,3 +260,3 @@ const { scrollTop, offsetHeight } = listElRef.value; | ||
const listEl = listElRef.value; | ||
if (listEl) { | ||
if (listEl != null) { | ||
if (anchorIndex === undefined) { | ||
@@ -301,4 +301,5 @@ const previousHeightSum = ft.sum(index); | ||
const listEl = listElRef.value; | ||
if (listEl) { | ||
if (listEl != null) { | ||
listEl.scrollTop += e.deltaY / (0, config_1.ensureWheelScale)(); | ||
listEl.scrollLeft += e.deltaX / (0, config_1.ensureWheelScale)(); | ||
syncViewport(); | ||
@@ -305,0 +306,0 @@ wheelCatched = true; |
{ | ||
"name": "vueuc", | ||
"version": "0.4.42", | ||
"version": "0.4.43", | ||
"description": "Util Components for Vue", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223768
5806