dynamic-virtual-scroller
Advanced tools
Comparing version 2.2.2 to 2.2.3
{ | ||
"name": "dynamic-virtual-scroller", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "A virtual scroller for the web that can handle dynamic row and column sizes.", | ||
@@ -5,0 +5,0 @@ "main": "virtual-scroller.js", |
@@ -42,5 +42,7 @@ import {ATTRIBUTES, EVENTS, CLASSES} from "./constants"; | ||
globalState.activeScrollerId = config.scrollerId; | ||
config.canvas.css('pointer-events', 'none'); // no hover effects => better performance | ||
config.container.trigger(EVENTS.scrollStart, config.scrollerId); | ||
} else if (wasScrollingBefore && isScrolling === false) { | ||
globalState.activeScrollerId = undefined; | ||
config.canvas.css('pointer-events', ''); | ||
config.container.trigger(EVENTS.scrollEnd, config.scrollerId); | ||
@@ -70,4 +72,6 @@ debouncedResetIsScrolling.cancel(); | ||
state.scrollTop = scrollTop; | ||
triggerChange(); | ||
if (scrollTop !== state.scrollTop) { | ||
state.scrollTop = scrollTop; | ||
triggerChange(); | ||
} | ||
}, | ||
@@ -82,4 +86,6 @@ setScrollLeft: (scrollLeft) => { | ||
state.scrollLeft = scrollLeft; | ||
triggerChange(); | ||
if (scrollLeft !== state.scrollLeft) { | ||
state.scrollLeft = scrollLeft; | ||
triggerChange(); | ||
} | ||
}, | ||
@@ -86,0 +92,0 @@ animatedScrolling: (function () { |
Sorry, the diff of this file is too big to display
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
481572
6383