MCPcopy
hub / github.com/NeXTs/Clusterize.js / scrollEv

Function scrollEv

clusterize.js:79–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 scroll_debounce = 0,
78 pointer_events_set = false,
79 scrollEv = function() {
80 // fixes scrolling issue on Mac #3
81 if (is_mac) {
82 if( ! pointer_events_set) self.content_elem.style.pointerEvents = 'none';
83 pointer_events_set = true;
84 clearTimeout(scroll_debounce);
85 scroll_debounce = setTimeout(function () {
86 self.content_elem.style.pointerEvents = 'auto';
87 pointer_events_set = false;
88 }, 50);
89 }
90 if (last_cluster != (last_cluster = self.getClusterNum(rows)))
91 self.insertToDOM(rows, cache);
92 if (self.options.callbacks.scrollingProgress)
93 self.options.callbacks.scrollingProgress(self.getScrollProgress());
94 },
95 resize_debounce = 0,
96 resizeEv = function() {
97 clearTimeout(resize_debounce);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected