MCPcopy Create free account
hub / github.com/TruthHun/BookStack / farAway

Function farAway

static/editor.md/lib/codemirror/lib/codemirror.js:3323–3327  ·  view source on GitHub ↗
(touch, other)

Source from the content-addressed store, hash-verified

3321 return touch.radiusX <= 1 && touch.radiusY <= 1;
3322 }
3323 function farAway(touch, other) {
3324 if (other.left == null) return true;
3325 var dx = other.left - touch.left, dy = other.top - touch.top;
3326 return dx * dx + dy * dy > 20 * 20;
3327 }
3328 on(d.scroller, "touchstart", function(e) {
3329 if (!isMouseLikeTouchEvent(e)) {
3330 clearTimeout(touchFinished);

Callers 1

registerEventHandlersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected