Skip to content

Commit

Permalink
Adding mousewheel setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dioslaska committed Feb 10, 2015
1 parent 0b55092 commit 75e311e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/mobiscroll.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
components: {},
defaults: {
context: 'body',
mousewheel: true,
vibrate: true
},
setDefaults: function (o) {
Expand Down
5 changes: 4 additions & 1 deletion js/mobiscroll.scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,17 @@

that._attachEvents = function ($markup) {
$markup
.on('DOMMouseScroll mousewheel', '.dwwl', onScroll)
.on('keydown', '.dwwl', onKeyDown)
.on('keyup', '.dwwl', onKeyUp)
.on('touchstart mousedown', '.dwwl', onStart)
.on('touchmove', '.dwwl', onMove)
.on('touchend', '.dwwl', onEnd)
.on('touchstart mousedown', '.dwwb', onBtnStart)
.on('touchend', '.dwwb', onBtnEnd);

if (s.mousewheel) {
$markup.on('DOMMouseScroll mousewheel', '.dwwl', onScroll)
}
};

that._markupReady = function () {
Expand Down

0 comments on commit 75e311e

Please sign in to comment.