StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/mouse-wheel
Angelos Chatzimparmpas f521a3509d paper-version 4 years ago
..
example paper-version 4 years ago
node_modules/signum paper-version 4 years ago
.npmignore paper-version 4 years ago
LICENSE paper-version 4 years ago
README.md paper-version 4 years ago
package.json paper-version 4 years ago
wheel.js paper-version 4 years ago

README.md

mouse-wheel

Consistent cross browser mouse wheel events. Test it out in your browser here.

Example

require('mouse-wheel')(function(dx, dy) {
  document.body.innerHTML = '<p>Scroll:' + [dx,dy] + '</p>'
})

Install

npm i mouse-wheel

API

require('mouse-wheel')(element, callback, noScroll)

Hook an event handler for the mouse wheel on element.

  • element is an optional DOM element, or if unspecified then is the window object.
  • callback(dx, dy, dz, ev) is called whenever the mouse scrolls
    • dx, dy, dz is the amount of scrolling vertically, horizontally and depth-wise in pixels
    • ev is the MouseEvent object associated with the event
  • noScroll is an optional flag, which if set disables scrolling the page

Returns listener function listener so that it may be detached later with element.removeEventListener('wheel', listener)

License

(c) 2015 Mikola Lysenko. MIT License