From cbdccf973602c66c7a980d4f55eab77854277d72 Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Mon, 25 Aug 2014 00:35:51 +0100 Subject: [PATCH] Remove jquery-mousewheel dependencies. Tested under OS X. --- Gruntfile.js | 6 +- README.md | 9 +- examples/options-default.html | 1 - examples/options-minScrollbarLength.html | 1 - examples/options-suppressScrollAxis.html | 1 - examples/options-useBothWheelAxes.html | 1 - examples/options-wheelPropagation.html | 1 - examples/options-wheelSpeed.html | 11 +- examples/reach-the-end-callback.html | 1 - examples/rtl.html | 1 - examples/scrollbars-on-the-opposite-side.html | 1 - examples/text-content.html | 1 - min/perfect-scrollbar.min.js | 2 +- min/perfect-scrollbar.with-mousewheel.min.js | 4 - src/jquery.mousewheel.js | 201 ------------------ src/perfect-scrollbar.js | 43 ++-- 16 files changed, 37 insertions(+), 248 deletions(-) delete mode 100644 min/perfect-scrollbar.with-mousewheel.min.js delete mode 100644 src/jquery.mousewheel.js diff --git a/Gruntfile.js b/Gruntfile.js index f3ad975..9464b97 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -21,11 +21,7 @@ module.exports = function (grunt) { }, min: { files: { - 'min/perfect-scrollbar.min.js': ['src/perfect-scrollbar.js'], - 'min/perfect-scrollbar.with-mousewheel.min.js': [ - 'src/perfect-scrollbar.js', - 'src/jquery.mousewheel.js' - ] + 'min/perfect-scrollbar.min.js': ['src/perfect-scrollbar.js'] } } }, diff --git a/README.md b/README.md index ce91728..6a0beac 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ perfect-scrollbar supports optional parameters. ### wheelSpeed The scroll speed applied to mousewheel event. -**Default: 10** +**Default: 1** ### wheelPropagation If this option is true, when the scroll reach the end of the side, mousewheel event will be propagated to parent element. @@ -167,13 +167,6 @@ $("#Demo").perfectScrollbar('update'); Also you can get the informations about how to use the plugin from example codes in the `examples` directory of the source tree. -Very helpful friends --------------------- - -perfect-scrollbar supports [jquery-mousewheel](https://github.com/brandonaaron/jquery-mousewheel). If you want to use mousewheel features, please include jquery-mousewheel before using perfect-scrollbar. - -If you want to make this plugin's update function more responsive, [jquery-resize](https://github.com/cowboy/jquery-resize) can be helpful. - Contribution ------------ diff --git a/examples/options-default.html b/examples/options-default.html index fa7bc3a..ed785b6 100644 --- a/examples/options-default.html +++ b/examples/options-default.html @@ -5,7 +5,6 @@ perfect-scrollbar example -