MCPcopy Create free account
hub / github.com/breck7/scroll / isMouseLikeTouchEvent

Function isMouseLikeTouchEvent

external/.scrollLibs.js:10925–10931  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

10923 }
10924 }
10925 function isMouseLikeTouchEvent(e) {
10926 if (e.touches.length != 1) {
10927 return false
10928 }
10929 var touch = e.touches[0]
10930 return touch.radiusX <= 1 && touch.radiusY <= 1
10931 }
10932 function farAway(touch, other) {
10933 if (other.left == null) {
10934 return true

Callers 1

registerEventHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected