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

Function onMouseWheel

plugins/Sidebar/media_globe/all.js:412–423  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

410 }
411
412 function onMouseWheel(event) {
413 if (container.style.cursor != "move") return false;
414 event.preventDefault();
415 if (overRenderer) {
416 if (event.deltaY) {
417 zoom(-event.deltaY * (event.deltaMode == 0 ? 1 : 50));
418 } else {
419 zoom(event.wheelDeltaY * 0.3);
420 }
421 }
422 return false;
423 }
424
425 function onDocumentKeyDown(event) {
426 switch (event.keyCode) {

Callers

nothing calls this directly

Calls 1

zoomFunction · 0.70

Tested by

no test coverage detected