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

Function farAway

samples/common/codehighlight/codemirror.js:7955–7959  ·  view source on GitHub ↗
(touch, other)

Source from the content-addressed store, hash-verified

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;
7958 return dx * dx + dy * dy > 20 * 20
7959 }
7960 on(d.scroller, "touchstart", function (e) {
7961 if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e) && !clickInGutter(cm, e)) {
7962 d.input.ensurePolled();

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected