0.1.2 • Published 10 years ago

uniwheel v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

Uniwheel

A unified cross browser mouse wheel event handler. Supports listener removal.

Further study: https://developer.mozilla.org/en-US/docs/Web/Reference/Events/wheel

Usage:

	var wheel = require('uniwheel');

	function onWheel(e) {
	  e.preventDefault();
	  console.log(e);
	}

	//arguments: element, cb, useCapture
	wheel.on(window,onWheel,false);
	wheel.on(window,onWheel,true);

	setTimeout(function(){
	  wheel.off(window,onWheel,false);
	},2000);

	setTimeout(function(){
	  wheel.off(window,onWheel,true);
	},4000);

License:

MIT

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago