Skip to content

Commit 74c448d

Browse files
Merge pull request #129 from danielebra/master
add missing default events to typescript events
2 parents 4e49616 + 27e8c69 commit 74c448d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ There are a few breaking changes in version 4:
143143
- keydown
144144
- wheel
145145
- DOMMouseScroll
146-
- mouseWheel
146+
- mousewheel
147147
- mousedown
148148
- touchstart
149149
- touchmove

src/index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ declare module 'react-idle-timer' {
2020
'copy' |
2121
'cut' |
2222
'dblclick' |
23+
'DOMMouseScroll' |
2324
'drag' |
2425
'dragend' |
2526
'dragenter' |
@@ -54,6 +55,8 @@ declare module 'react-idle-timer' {
5455
'mouseout' |
5556
'mouseup' |
5657
'mousewheel' |
58+
'MSPointerDown' |
59+
'MSPointerMove' |
5760
'offline' |
5861
'online' |
5962
'open' |
@@ -88,7 +91,8 @@ declare module 'react-idle-timer' {
8891
'unload' |
8992
'volumechange' |
9093
'waiting' |
91-
'wheel'
94+
'wheel' |
95+
'visibilitychange'
9296

9397
export default class IdleTimer extends React.Component<IdleTimerProps> {
9498
/**

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const DEFAULT_EVENTS = [
2424
'keydown',
2525
'wheel',
2626
'DOMMouseScroll',
27-
'mouseWheel',
27+
'mousewheel',
2828
'mousedown',
2929
'touchstart',
3030
'touchmove',

0 commit comments

Comments
 (0)