MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / onMouseWheel

Function onMouseWheel

plugins/Sidebar/media_globe/globe.js:323–334  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

321 }
322
323 function onMouseWheel(event) {
324 if (container.style.cursor != "move") return false;
325 event.preventDefault();
326 if (overRenderer) {
327 if (event.deltaY) {
328 zoom(-event.deltaY * (event.deltaMode == 0 ? 1 : 50));
329 } else {
330 zoom(event.wheelDeltaY * 0.3);
331 }
332 }
333 return false;
334 }
335
336 function onDocumentKeyDown(event) {
337 switch (event.keyCode) {

Callers

nothing calls this directly

Calls 1

zoomFunction · 0.70

Tested by

no test coverage detected