Gathering detailed insights and metrics for @react-jvectormap/jquery-mousewheel
Gathering detailed insights and metrics for @react-jvectormap/jquery-mousewheel
Gathering detailed insights and metrics for @react-jvectormap/jquery-mousewheel
Gathering detailed insights and metrics for @react-jvectormap/jquery-mousewheel
A jQuery plugin that adds cross-browser mouse wheel support.
npm install @react-jvectormap/jquery-mousewheel
Typescript
Module System
Node Version
NPM Version
91.1
Supply Chain
86.7
Quality
75.5
Maintenance
100
Vulnerability
99.6
License
HTML (49.91%)
JavaScript (46.86%)
Shell (3.22%)
Total Downloads
702,165
Last Day
838
Last Week
12,173
Last Month
51,052
Last Year
380,373
NOASSERTION License
3,908 Stars
205 Commits
1,680 Forks
170 Watchers
5 Branches
23 Contributors
Updated on Jun 12, 2025
Minified
Minified + Gzipped
Latest Version
1.0.2
Package Id
@react-jvectormap/jquery-mousewheel@1.0.2
Unpacked Size
16.54 kB
Size
6.18 kB
File Count
5
NPM Version
lerna/4.0.0/node@v14.15.0+x64 (darwin)
Node Version
14.15.0
Cumulative downloads
Total Downloads
Last Day
2.1%
838
Compared to previous day
Last Week
1.1%
12,173
Compared to previous week
Last Month
2.6%
51,052
Compared to previous month
Last Year
70.9%
380,373
Compared to previous year
A jQuery plugin that adds cross-browser mouse wheel support with delta normalization.
In order to use the plugin, simply bind the mousewheel
event to an element.
It also provides two helper methods called mousewheel
and unmousewheel
that act just like other event helper methods in jQuery.
The event object is updated with the normalized deltaX
and deltaY
properties.
In addition there is a new property on the event object called deltaFactor
. Multiply
the deltaFactor
by deltaX
or deltaY
to get the scroll distance that the browser
has reported.
Here is an example of using both the bind and helper method syntax:
1// using on 2$('#my_elem').on('mousewheel', function(event) { 3 console.log(event.deltaX, event.deltaY, event.deltaFactor); 4}); 5 6// using the event helper 7$('#my_elem').mousewheel(function(event) { 8 console.log(event.deltaX, event.deltaY, event.deltaFactor); 9});
The old behavior of adding three arguments (delta
, deltaX
, and deltaY
) to the
event handler is now deprecated and will be removed in later releases.
The combination of browsers, operating systems, and devices offer a huge range of possible delta values. In fact if the user uses a trackpad and then a physical mouse wheel the delta values can differ wildly. This plugin normalizes those values so you get a whole number starting at +-1 and going up in increments of +-1 according to the force or acceleration that is used. This number has the potential to be in the thousands depending on the device. Check out some of the data collected from users here.
In some use-cases we prefer to have the normalized delta but in others we want to know how far the browser should
scroll based on the users input. This can be done by multiplying the deltaFactor
by the deltaX
or deltaY
event property to find the scroll distance the browser reported.
The deltaFactor
property was added to the event object in 3.1.5 so that the actual reported delta value can be
extracted. This is a non-standard property.
1$ git clone git@github.com:jquery/jquery-mousewheel.git 2$ cd jquery-mousewheel/ 3$ npm install 4$ npm run build 5$ npm run karma
The unit tests run by karma are very basic sanity checks; improvements welcome. To fully test the plugin, load test/index.html in each supported browser and follow the instructions at the top of the file after the unit tests finish.
No vulnerabilities found.
Reason
12 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 2/12 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-09
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More