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

Function scrollChangeZoom

src/pages/Workspace/index.jsx:311–317  ·  view source on GitHub ↗
({ wheelDelta })

Source from the content-addressed store, hash-verified

309 }, [zoom])
310
311 function scrollChangeZoom({ wheelDelta }) {
312 if (wheelDelta > 0) {
313 zoomChange(zoom + 5 > 200 ? 200 : zoom + 5)
314 } else {
315 zoomChange(zoom - 5 < 10 ? 10 : zoom - 5)
316 }
317 }
318 /**
319 * 对子组件进行影响
320 * @param {*} data

Callers

nothing calls this directly

Calls 1

zoomChangeFunction · 0.85

Tested by

no test coverage detected