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

Function PastClick

external/.scrollLibs.js:9940–9944  ·  view source on GitHub ↗
(time, pos, button)

Source from the content-addressed store, hash-verified

9938 var DOUBLECLICK_DELAY = 400
9939
9940 var PastClick = function (time, pos, button) {
9941 this.time = time
9942 this.pos = pos
9943 this.button = button
9944 }
9945
9946 PastClick.prototype.compare = function (time, pos, button) {
9947 return this.time + DOUBLECLICK_DELAY > time && cmp(pos, this.pos) == 0 && button == this.button

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected