mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-10 23:53:10 +00:00
comments for added clarity on bindings
This commit is contained in:
parent
0cdd401f3a
commit
bc473f48a7
1 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
|
|||
|
||||
label.addClass('ui-slider');
|
||||
|
||||
// monitor the input for updated values
|
||||
control
|
||||
.addClass((cType == 'input') ? 'ui-slider-input' : 'ui-slider-switch')
|
||||
.change(function(){
|
||||
|
|
@ -84,6 +85,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
|
|||
self.refresh( val(), true );
|
||||
});
|
||||
|
||||
// prevent screen drag when slider activated
|
||||
$(document).bind($.support.touch ? "touchmove" : "mousemove", function(event){
|
||||
if ( self.dragging ) {
|
||||
self.refresh( event );
|
||||
|
|
|
|||
Loading…
Reference in a new issue