Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarotrigo committed May 15, 2021
2 parents d9fdfea + cdb69c0 commit f538ea6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,13 @@ $.fn.multiscroll.moveTo('firstSection');
$.fn.multiscroll.moveTo(3);
```

### setMouseWheelScrolling
Adds or remove the possibility of scrolling through sections by using mouse wheel (which is active by default).

```javascript
$.fn.multiscroll.setMouseWheelScrolling(false);
```

### setKeyboardScrolling
Adds or remove the possibility of scrolling through sections by using the keyboard arrow keys (which is active by default).

Expand Down Expand Up @@ -387,7 +394,7 @@ Example:

```javascript
$('#multiscroll').multiscroll({
onLeave: function(index, direction){
onLeave: function(index, nextIndex, direction){
//after leaving section 2
if(index == '2' && direction =='down'){
alert("Going to section 3!");
Expand Down

0 comments on commit f538ea6

Please sign in to comment.