mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-22 13:21:52 +00:00
Make button look pressed on touchstart event
This commit is contained in:
parent
107fc25838
commit
08b17e71cb
1 changed files with 2 additions and 2 deletions
|
|
@ -83,11 +83,11 @@ $.fn.buttonMarkup.defaults = {
|
|||
|
||||
var attachEvents = function() {
|
||||
$(".ui-btn:not(.ui-disabled)").live({
|
||||
mousedown: function() {
|
||||
"touchstart mousedown": function() {
|
||||
var theme = $(this).attr( "data-theme" );
|
||||
$(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
|
||||
},
|
||||
mouseup: function() {
|
||||
"touchmove touchend mouseup": function() {
|
||||
var theme = $(this).attr( "data-theme" );
|
||||
$(this).removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue