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

Method update

src/track/track.ts:66–76  ·  view source on GitHub ↗
(
    scrollOffset: number,
    containerSize: number,
    pageSize: number,
  )

Source from the content-addressed store, hash-verified

64 }
65
66 update(
67 scrollOffset: number,
68 containerSize: number,
69 pageSize: number,
70 ) {
71 setStyle(this.element, {
72 display: pageSize <= containerSize ? 'none' : 'block',
73 });
74
75 this.thumb.update(scrollOffset, containerSize, pageSize);
76 }
77}

Callers

nothing calls this directly

Calls 2

setStyleFunction · 0.90
updateMethod · 0.65

Tested by

no test coverage detected