Browse files

Configurable hover animation.

  • Loading branch information...
1 parent 9ce232f commit c1233aeb5a554518e0216158ce6f4854386cc65b Takashi Okamoto committed Jan 30, 2012
Showing with 6 additions and 2 deletions.
  1. +1 −1 js/jquery.mobile.buttonMarkup.js
  2. +5 −1 js/jquery.mobile.core.js
View
2 js/jquery.mobile.buttonMarkup.js
@@ -39,7 +39,7 @@ $.fn.buttonMarkup = function( options ) {
continue;
}
- if ( attachEvents ) {
+ if ( $.mobile.buttonHoverEnabled && attachEvents ) {
attachEvents();
}
View
6 js/jquery.mobile.core.js 100644 → 100755
@@ -50,7 +50,11 @@ define( [ "jquery", "../external/requirejs/text!../version.txt", "./jquery.mobil
// Minimum scroll distance that will be remembered when returning to a page
minScrollBack: 10,
-
+
+ // Enabled hover animation for button when mouseover or tap.
+ // Disable this value to improve old Android response.
+ buttonHoverEnabled: true,
+
// DEPRECATED: the following property is no longer in use, but defined until 2.0 to prevent conflicts
touchOverflowEnabled: false,

0 comments on commit c1233ae

Please sign in to comment.