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

Function start

static/editor.md/editormd.amd.js:4497–4505  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4495 dialogHeader.touchDraggable = function() {
4496 var offset = null;
4497 var start = function(e) {
4498 var orig = e.originalEvent;
4499 var pos = $(this).parent().position();
4500
4501 offset = {
4502 x : orig.changedTouches[0].pageX - pos.left,
4503 y : orig.changedTouches[0].pageY - pos.top
4504 };
4505 };
4506
4507 var move = function(e) {
4508 e.preventDefault();

Callers

nothing calls this directly

Calls 1

$Function · 0.50

Tested by

no test coverage detected