MCPcopy Index your code
hub / github.com/DHTMLX/gantt / finishTouch

Function finishTouch

samples/common/codehighlight/codemirror.js:7943–7949  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7941 // Used to suppress mouse event handling when a touch happens
7942 var touchFinished, prevTouch = {end: 0};
7943 function finishTouch() {
7944 if (d.activeTouch) {
7945 touchFinished = setTimeout(function () { return d.activeTouch = null; }, 1000);
7946 prevTouch = d.activeTouch;
7947 prevTouch.end = +new Date;
7948 }
7949 }
7950 function isMouseLikeTouchEvent(e) {
7951 if (e.touches.length != 1) { return false }
7952 var touch = e.touches[0];

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected