SkillAgentSearch skills...

Hamster.js

A standalone javascript library for cross-browser mouse wheel support.

Install / Use

/learn @monospaced/Hamster.js
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Hamster.js

A standalone javascript library for cross-browser mouse wheel support.

See it in action.

Usage

The event callback receives 3 extra arguments which are the normalized “deltas” of the mouse wheel.

var hamster = Hamster(el);

hamster.wheel(function(event, delta, deltaX, deltaY){
  console.log(delta, deltaX, deltaY);
});

// destroy
hamster.unwheel();

Support

No jQuery or other libraries required, but an <a href="http://github.com/monospaced/angular-mousewheel">adapter for AngularJS</a> is available.

Tested in these core browsers.

Install

bower install hamsterjs

Demo

monospaced.github.io/hamster.js

Reference

View on GitHub
GitHub Stars179
CategoryCustomer
Updated1mo ago
Forks29

Languages

HTML

Security Score

80/100

Audited on Feb 3, 2026

No findings