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

Function finishTouch

static/mergely/lib/codemirror.js:3420–3426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3418 // Used to suppress mouse event handling when a touch happens
3419 var touchFinished, prevTouch = {end: 0};
3420 function finishTouch() {
3421 if (d.activeTouch) {
3422 touchFinished = setTimeout(function() {d.activeTouch = null;}, 1000);
3423 prevTouch = d.activeTouch;
3424 prevTouch.end = +new Date;
3425 }
3426 };
3427 function isMouseLikeTouchEvent(e) {
3428 if (e.touches.length != 1) return false;
3429 var touch = e.touches[0];

Callers 1

registerEventHandlersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected