MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / farAway

Function farAway

static/plugins/codemirror/codemirror.js:7999–8003  ·  view source on GitHub ↗
(touch, other)

Source from the content-addressed store, hash-verified

7997 return touch.radiusX <= 1 && touch.radiusY <= 1
7998 }
7999 function farAway(touch, other) {
8000 if (other.left == null) { return true }
8001 var dx = other.left - touch.left, dy = other.top - touch.top;
8002 return dx * dx + dy * dy > 20 * 20
8003 }
8004 on(d.scroller, "touchstart", function (e) {
8005 if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e) && !clickInGutter(cm, e)) {
8006 d.input.ensurePolled();

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected