MCPcopy
hub / github.com/witheve/Eve / finishTouch

Function finishTouch

src/codemirror.js:3441–3447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3439 // Used to suppress mouse event handling when a touch happens
3440 var touchFinished, prevTouch = {end: 0};
3441 function finishTouch() {
3442 if (d.activeTouch) {
3443 touchFinished = setTimeout(function() {d.activeTouch = null;}, 1000);
3444 prevTouch = d.activeTouch;
3445 prevTouch.end = +new Date;
3446 }
3447 };
3448 function isMouseLikeTouchEvent(e) {
3449 if (e.touches.length != 1) return false;
3450 var touch = e.touches[0];

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected