Skip to content

Commit f538ea6

Browse files
committed
2 parents d9fdfea + cdb69c0 commit f538ea6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,13 @@ $.fn.multiscroll.moveTo('firstSection');
314314
$.fn.multiscroll.moveTo(3);
315315
```
316316

317+
### setMouseWheelScrolling
318+
Adds or remove the possibility of scrolling through sections by using mouse wheel (which is active by default).
319+
320+
```javascript
321+
$.fn.multiscroll.setMouseWheelScrolling(false);
322+
```
323+
317324
### setKeyboardScrolling
318325
Adds or remove the possibility of scrolling through sections by using the keyboard arrow keys (which is active by default).
319326

@@ -387,7 +394,7 @@ Example:
387394

388395
```javascript
389396
$('#multiscroll').multiscroll({
390-
onLeave: function(index, direction){
397+
onLeave: function(index, nextIndex, direction){
391398
//after leaving section 2
392399
if(index == '2' && direction =='down'){
393400
alert("Going to section 3!");

0 commit comments

Comments
 (0)