Skip to content

Commit

Permalink
Vibrate changes
Browse files Browse the repository at this point in the history
  • Loading branch information
szily20 committed Feb 5, 2015
1 parent 4e93392 commit e2b4023
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/mobiscroll.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@
constrain: function (val, min, max) {
return Math.max(min, Math.min(val, max));
},
vibrate: function (time) {
vibrate: function () {
if ('vibrate' in navigator) {
navigator.vibrate(time);
navigator.vibrate(60);
}
}
},
Expand All @@ -171,7 +171,8 @@
classes: {},
components: {},
defaults: {
context: 'body'
context: 'body',
vibrate: true
},
setDefaults: function (o) {
extend(this.defaults, o);
Expand Down

0 comments on commit e2b4023

Please sign in to comment.