MCPcopy Create free account
hub / github.com/TruthHun/BookStack / move

Function move

static/editor.md/lib/codemirror/addon/scroll/simplescrollbars.js:34–37  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

32 CodeMirror.off(document, "mouseup", done);
33 }
34 function move(e) {
35 if (e.which != 1) return done();
36 self.moveTo(startpos + (e[axis] - start) * (self.total / self.size));
37 }
38 CodeMirror.on(document, "mousemove", move);
39 CodeMirror.on(document, "mouseup", done);
40 });

Callers

nothing calls this directly

Calls 1

doneFunction · 0.70

Tested by

no test coverage detected