Permalink
Browse files

Fix mousewheel not working

  • Loading branch information...
1 parent e434df2 commit 9f9614cdab58e0246bfe33a011a4dd4b20a790db Mihai Subtirelu committed Nov 30, 2016
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 src/SectionsContainer.js
View
@@ -1,6 +1,6 @@
{
"name": "react-fullpage",
- "version": "0.1.15",
+ "version": "0.1.16",
"description": "An implementation of fullpage.js in react based on react-fullpage",
"main": "index.js",
"scripts": {
@@ -117,8 +117,8 @@ export default class SectionsContainer extends React.Component {
window.removeEventListener('DOMMouseScroll', this._handleMouseWheel);
}
- _handleMouseWheel() {
- const e = window.event || e; // old IE support
+ _handleMouseWheel(event) {
+ const e = window.event || event; // old IE support
const delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
const activeSection = this.state.activeSection - delta;

0 comments on commit 9f9614c

Please sign in to comment.