1.0.0 • Published 6 years ago

@hudk/judge-interactive v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

judgeInteract

judge if spcified types of event is programmatic trigger or user interact

import

npm install --save @hudk/judge-interactive

usage

require('@hudk/judge-interactive')

functions

addInteractiveEventListener(type, listener[, useCapture, options])

listener: {
  userTriggerListener: Function,
  progTriggerListener: Function
}
[addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)

removeInteractiveEventListener(type, listener[, useCapture, options])

listener: {
  userTriggerListener: Function,
  progTriggerListener: Function
}
[removeEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)