mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-22 15:14:44 +00:00
allow scroll to work when touch start begins on a select button. Fixes #804
This commit is contained in:
parent
0413542753
commit
87c7b57da9
1 changed files with 13 additions and 4 deletions
|
|
@ -159,10 +159,19 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
});
|
||||
|
||||
//button events
|
||||
button.bind( $.support.touch ? "touchstart" : "click", function(event){
|
||||
self.open();
|
||||
event.preventDefault();
|
||||
});
|
||||
button
|
||||
.bind( $.support.touch ? "touchend" : "click" , function( event ){
|
||||
if( $( this ).data( "moved" ) ){
|
||||
$( this ).removeData( "moved" );
|
||||
}
|
||||
else{
|
||||
self.open();
|
||||
event.preventDefault();
|
||||
}
|
||||
})
|
||||
.bind( "touchmove", function(event){
|
||||
$( this ).data( "moved", true );
|
||||
});
|
||||
|
||||
//events for list items
|
||||
list.delegate("li:not(.ui-disabled, .ui-li-divider)", "click", function(event){
|
||||
|
|
|
|||
Loading…
Reference in a new issue