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

Function isMouseLikeTouchEvent

samples/common/codehighlight/codemirror.js:7950–7954  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

7948 }
7949 }
7950 function isMouseLikeTouchEvent(e) {
7951 if (e.touches.length != 1) { return false }
7952 var touch = e.touches[0];
7953 return touch.radiusX <= 1 && touch.radiusY <= 1
7954 }
7955 function farAway(touch, other) {
7956 if (other.left == null) { return true }
7957 var dx = other.left - touch.left, dy = other.top - touch.top;

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected