MCPcopy Create free account
hub / github.com/witheve/Eve / isMouseLikeTouchEvent

Function isMouseLikeTouchEvent

src/codemirror.js:3448–3452  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3446 }
3447 };
3448 function isMouseLikeTouchEvent(e) {
3449 if (e.touches.length != 1) return false;
3450 var touch = e.touches[0];
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;

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected