MCPcopy
hub / github.com/dolphin-wood/smooth-scrollbar / updateScrollbar

Function updateScrollbar

demo/scripts/controller.ts:42–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40const controller = new dat.GUI();
41
42function updateScrollbar() {
43 scrollbars.forEach((s) => {
44 // real-time options
45 Object.assign(s.options, options);
46 s.updatePluginOptions('overscroll', {
47 ...overscrollOptions,
48 effect: overscrollOptions.enable ? overscrollOptions.effect : undefined,
49 });
50
51 if (options.alwaysShowTracks) {
52 s.track.xAxis.show();
53 s.track.yAxis.show();
54 } else {
55 s.track.xAxis.hide();
56 s.track.yAxis.hide();
57 }
58 });
59}
60
61const f1 = controller.addFolder('Scrollbar Options');
62f1.open();

Callers

nothing calls this directly

Calls 3

updatePluginOptionsMethod · 0.65
showMethod · 0.65
hideMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…