10 Best JavaScript Mouse Events Libraries

List hand-picked by Openbase Experts
Learn More

react-use-gesture

👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
4
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
6K
Weekly Downloads
169K
Last Commit
1mo ago
rdm

react-dnd-mouse-backend

Mouse Backend for react-dnd library

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.0/ 5
1
Top Feedback
N/A
GitHub Stars
81
Weekly Downloads
12K
Last Commit
9mos ago
rae

react-any-event

Create and handle new events for HTML elements

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
1mo ago
ns

ngx-selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
979
Weekly Downloads
480
Last Commit
2mos ago

vue-click-outside

ClickOutside directive for Vue.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
274
Weekly Downloads
74K
Last Commit
2yrs ago
np

ngx-panzoom

Pan/Zoom library for Angular

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
51
Weekly Downloads
1K
Last Commit
2mos ago
rcp

react-cursor-position

A React component that decorates its children with mouse and touch coordinates relative to itself.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
137
Weekly Downloads
30K
Last Commit
3yrs ago
rsw

react-scroll-wheel-handler

Simple React component for handling scroll trackpad, arrow keys, swipe gestures and mouse wheel event.

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
42
Weekly Downloads
1K
Last Commit
5mos ago
rip

react-input-position

A React component that decorates it's children with mouse/touch position tracking, a status toggle fired by click/gesture events, and more.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
35
Weekly Downloads
11K
Last Commit
1yr ago
ra

react-aim

Determine the cursor aim for triggering mouse events.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
369
Weekly Downloads
1K
Last Commit
3yrs ago
uma

use-mouse-action

React Hooks to listen to both mouse down or up and click events with a once called function

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
17
Weekly Downloads
1K
Last Commit
3yrs ago
rr

react-rotation

React rotation component

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
108
Weekly Downloads
1K
Last Commit
3yrs ago
am

angular-mousewheel

An AngularJS directive for cross-browser mouse wheel support.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
71
Weekly Downloads
1K
Last Commit
6yrs ago
vdl

vue-directive-long-press

Vue Directive for Long Press

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
19
Weekly Downloads
886
Last Commit
2yrs ago
ase

angular-scroll-events

Angular directives for scroll events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
729
Last Commit
3yrs ago

vue-mouseover

Changes Vue component data property when mouse enters or leaves HTML element

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
10
Last Commit
8mos ago

react-mouse-aware

A tiny higher order component to track mouse state.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
38
Weekly Downloads
592
Last Commit
5yrs ago

react-browser-hooks

React Browser Hooks

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
129
Weekly Downloads
427
Last Commit
2yrs ago
nlp

ngx-long-press2

Angular Library to handle long mouse clicks event for desktop and long touch events for mobile and tablets

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
160
Last Commit
1yr ago
nm

ngx-mousetrap

Angular library to use mousetrap as Angular Service or Directive

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
6
Weekly Downloads
5
Last Commit
2mos ago
vh

@yst/vue-hoverable

@yst/vue-hoverable · Lightweight Vue utility for listening to mouse hover.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
0
Last Commit
3mos ago
vlp

vue-long-press-directive

Long press directive plugin for Vue.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
10
Weekly Downloads
80
Last Commit
4yrs ago
rum

react-use-mouse-move

Custom hook for capturing mouse move event easily

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
35
Last Commit
3yrs ago
ns

ng-scroll

A simple angular directive to assist with handling mouse scroll events

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
30
Last Commit
6yrs ago
reo

react-event-outside

A Higher Order Component for listening mouse events outside of the component

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
15
Last Commit
5yrs ago

react-event-components

🛰 A set of React components designed to handle global events (interval, keyboard, touch, mouse, etc)

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
273
Weekly Downloads
14
Last Commit
4yrs ago
umm

use-mouse-move

React hook for listening to mouse move events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
5
Weekly Downloads
0
Last Commit
9mos ago
vh

vue-hover

A Vue plugin for adding dynamic hover styles to an HTML element.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
3
Last Commit
2yrs ago

ng2-mouse-select

Angular 2 directive for selecting multiple items with the mouse.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
3
Last Commit
4yrs ago
nhw

ng-horizontal-wheel-scroll

A directive to enable horizontal scrolling with a mousewheel

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
2yrs ago
ndm

ng2-dragula-mouse

Simple drag and drop with dragula

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
4yrs ago
ar

angular-rightclicktrigger

Angular 2+ material menu trigger for right mouse button

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
4yrs ago
vh

v-hover

Direction-aware hover effect for Vue2.0.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
2
Last Commit
4yrs ago
ap

angular-pressmove

Pressmove directive for angular

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
1
Last Commit
5yrs ago
rtm

react-touch-mouse-handler

Higher Order Component for touch and mouse events control.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2
Weekly Downloads
1
Last Commit
2yrs ago
amt

angular-mouse-tooltip

Angular directive for mouse tooltip

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
1
Last Commit
5yrs ago
ntt

ngx-touch-trail

Angular library

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
1
Last Commit
1yr ago
vmp

vue-mouse-position

get the current mouse position

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
N/A
vm

vue-mousefollower

Vue plugin for moving background-position on mouse move

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
1
Last Commit
2yrs ago