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

Function isMouseLikeTouchEvent

static/mergely/lib/codemirror.js:3427–3431  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3425 }
3426 };
3427 function isMouseLikeTouchEvent(e) {
3428 if (e.touches.length != 1) return false;
3429 var touch = e.touches[0];
3430 return touch.radiusX <= 1 && touch.radiusY <= 1;
3431 }
3432 function farAway(touch, other) {
3433 if (other.left == null) return true;
3434 var dx = other.left - touch.left, dy = other.top - touch.top;

Callers 1

registerEventHandlersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected