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

Function e_button

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

Source from the content-addressed store, hash-verified

2049 return e.target || e.srcElement
2050 }
2051 function e_button(e) {
2052 var b = e.which
2053 if (b == null) {
2054 if (e.button & 1) {
2055 b = 1
2056 } else if (e.button & 2) {
2057 b = 3
2058 } else if (e.button & 4) {
2059 b = 2
2060 }
2061 }
2062 if (mac && e.ctrlKey && b == 1) {
2063 b = 3
2064 }
2065 return b
2066 }
2067
2068 // Detect drag-and-drop
2069 var dragAndDrop = (function () {

Callers 2

onMouseDownFunction · 0.85
leftButtonSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected