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

Function finishTouch

static/editor.md/lib/codemirror/lib/codemirror.js:3311–3317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3309 // Used to suppress mouse event handling when a touch happens
3310 var touchFinished, prevTouch = {end: 0};
3311 function finishTouch() {
3312 if (d.activeTouch) {
3313 touchFinished = setTimeout(function() {d.activeTouch = null;}, 1000);
3314 prevTouch = d.activeTouch;
3315 prevTouch.end = +new Date;
3316 }
3317 };
3318 function isMouseLikeTouchEvent(e) {
3319 if (e.touches.length != 1) return false;
3320 var touch = e.touches[0];

Callers 1

registerEventHandlersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected