Comparing version 0.4.46 to 0.4.47
@@ -290,5 +290,14 @@ /* eslint-disable no-void */ | ||
if (mayUseWheel) { | ||
e.preventDefault(); | ||
const listEl = listElRef.value; | ||
if (listEl != null) { | ||
if (e.deltaX === 0) { | ||
if (listEl.scrollTop === 0 && e.deltaY <= 0) { | ||
return; | ||
} | ||
if (listEl.scrollTop + listEl.offsetHeight >= listEl.scrollHeight && | ||
e.deltaY >= 0) { | ||
return; | ||
} | ||
} | ||
e.preventDefault(); | ||
listEl.scrollTop += e.deltaY / ensureWheelScale(); | ||
@@ -295,0 +304,0 @@ listEl.scrollLeft += e.deltaX / ensureWheelScale(); |
@@ -295,5 +295,14 @@ "use strict"; | ||
if (mayUseWheel) { | ||
e.preventDefault(); | ||
const listEl = listElRef.value; | ||
if (listEl != null) { | ||
if (e.deltaX === 0) { | ||
if (listEl.scrollTop === 0 && e.deltaY <= 0) { | ||
return; | ||
} | ||
if (listEl.scrollTop + listEl.offsetHeight >= listEl.scrollHeight && | ||
e.deltaY >= 0) { | ||
return; | ||
} | ||
} | ||
e.preventDefault(); | ||
listEl.scrollTop += e.deltaY / (0, config_1.ensureWheelScale)(); | ||
@@ -300,0 +309,0 @@ listEl.scrollLeft += e.deltaX / (0, config_1.ensureWheelScale)(); |
{ | ||
"name": "vueuc", | ||
"version": "0.4.46", | ||
"version": "0.4.47", | ||
"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
225199
5830