MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onwheel

Function onwheel

src/handlers/quickToolsInit.js:135–150  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

133}
134
135function onwheel(e) {
136 e.preventDefault();
137 const $el = e.target;
138 const { $row1, $row2 } = quickTools;
139 let $row;
140
141 if ($row1?.contains($el)) {
142 $row = $row1;
143 } else if ($row2?.contains($el)) {
144 $row = $row2;
145 }
146
147 if ($row) {
148 $row.scrollLeft += e.deltaY;
149 }
150}
151
152function onclick(e) {
153 reset();

Callers

nothing calls this directly

Calls 1

preventDefaultMethod · 0.45

Tested by

no test coverage detected