Permalink
Browse files

Slider: event.which for mousedown can be 0 or 1, because it is 0 on m…

…obile and 1 (left mouse button) on desktop.

(cherry picked from commit cd2e2c0)
  • Loading branch information...
1 parent 2f9b099 commit db9780cabdf842f39571840bb0b9e06953df07a9 @gabrielschulhof gabrielschulhof committed Mar 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/forms/slider.js
View
2 js/widgets/forms/slider.js
@@ -261,7 +261,7 @@ $.widget( "mobile.slider", $.mobile.widget, $.extend( {
_sliderVMouseDown: function( event ) {
// NOTE: we don't do this in refresh because we still want to
// support programmatic alteration of disabled inputs
- if ( this.options.disabled || event.which !== 1 ) {
+ if ( this.options.disabled || !( event.which === 1 || event.which === 0 ) ) {
return false;
}
if ( this._trigger( "beforestart", event ) === false ) {

0 comments on commit db9780c

Please sign in to comment.