From dc6dde2621494d75e0d0c272647840a05348d2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro?= Date: Wed, 11 Sep 2019 12:39:23 +0200 Subject: [PATCH 1/2] Documentation: fixed missing param in onLeave callback ##117 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 755eeab..df56d2e 100644 --- a/README.md +++ b/README.md @@ -365,7 +365,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!"); From ee8f487520999adba917374043e846606feee9f6 Mon Sep 17 00:00:00 2001 From: Talgat Uspanov Date: Tue, 29 Oct 2019 22:34:58 +0600 Subject: [PATCH 2/2] update README.md update docs, add method setMouseWheelScrolling closes #81 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index df56d2e..32daa87 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,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).