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

Function farAway

src/codemirror.js:3453–3457  ·  view source on GitHub ↗
(touch, other)

Source from the content-addressed store, hash-verified

3451 return touch.radiusX <= 1 && touch.radiusY <= 1;
3452 }
3453 function farAway(touch, other) {
3454 if (other.left == null) return true;
3455 var dx = other.left - touch.left, dy = other.top - touch.top;
3456 return dx * dx + dy * dy > 20 * 20;
3457 }
3458 on(d.scroller, "touchstart", function(e) {
3459 if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e)) {
3460 clearTimeout(touchFinished);

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected