MCPcopy
hub / github.com/stemdeckapp/stemdeck / link

Function link

static/js/transport.js:407–410  ·  view source on GitHub ↗
(src, dst)

Source from the content-addressed store, hash-verified

405 // no-op), so no reentrancy guard / rAF is needed — that frame-delayed guard
406 // was what made inertial scrolling stutter (#163).
407 const link = (src, dst) =>
408 src.addEventListener("scroll", () => {
409 if (dst.scrollTop !== src.scrollTop) dst.scrollTop = src.scrollTop;
410 }, { passive: true });
411 link(mixer, waveScroll);
412 link(waveScroll, mixer);
413}

Callers 1

wireLaneScrollSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected