MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / scrollFunc

Function scrollFunc

src/pages/Workspace/index.jsx:305–308  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

303 listener.set(ele, scrollFunc)
304 ele.addEventListener('mousewheel', listener.get(ele), false)
305 function scrollFunc(e) {
306 debounce(scrollChangeZoom, 100)({ wheelDelta: e.wheelDelta })
307 e.preventDefault()
308 }
309 }, [zoom])
310
311 function scrollChangeZoom({ wheelDelta }) {

Callers

nothing calls this directly

Calls 1

debounceFunction · 0.85

Tested by

no test coverage detected