Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

configure button markup hoverDelay

  • Loading branch information...
commit f407ff2453f4d1fd5f0b28eeef56536328df430d 1 parent 6389294
@johnbender johnbender authored
Showing with 6 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.buttonMarkup.js
  2. +4 −0 js/jquery.mobile.core.js
View
4 js/jquery.mobile.buttonMarkup.js
@@ -184,8 +184,8 @@ function closestEnabledButton( element ) {
}
var attachEvents = function() {
- var hoverDelay = 200,
- hov, foc;
+ var hoverDelay = $.mobile.buttonMarkup.hoverDelay, hov, foc;
+
$( document ).bind( {
"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart": function( event ) {
var theme,
View
4 js/jquery.mobile.core.js
@@ -86,6 +86,10 @@ define( [ "jquery", "../external/requirejs/text!../version.txt", "./jquery.mobil
// turn of binding to the native orientationchange due to android orientation behavior
orientationChangeEnabled: true,
+ buttonMarkup: {
+ hoverDelay: 200
+ },
+
// TODO might be useful upstream in jquery itself ?
keyCode: {
ALT: 18,
Please sign in to comment.
Something went wrong with that request. Please try again.