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

Function start

static/editor.md/editormd.js:4517–4525  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4515 dialogHeader.touchDraggable = function() {
4516 var offset = null;
4517 var start = function(e) {
4518 var orig = e.originalEvent;
4519 var pos = $(this).parent().position();
4520
4521 offset = {
4522 x : orig.changedTouches[0].pageX - pos.left,
4523 y : orig.changedTouches[0].pageY - pos.top
4524 };
4525 };
4526
4527 var move = function(e) {
4528 e.preventDefault();

Callers

nothing calls this directly

Calls 1

$Function · 0.50

Tested by

no test coverage detected