mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Update externals to latest mousewheel plugin, drop the version from the fielname while at it
This commit is contained in:
parent
0a4c334430
commit
1510f7e28a
@ -5,7 +5,7 @@
|
||||
<title>jQuery UI Spinner - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script src="../../external/jquery.mousewheel.js"></script>
|
||||
<script src="../../external/globalize.js"></script>
|
||||
<script src="../../external/globalize.culture.de-DE.js"></script>
|
||||
<script src="../../external/globalize.culture.ja-JP.js"></script>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<title>jQuery UI Spinner - Decimal</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script src="../../external/jquery.mousewheel.js"></script>
|
||||
<script src="../../external/globalize.js"></script>
|
||||
<script src="../../external/globalize.culture.de-DE.js"></script>
|
||||
<script src="../../external/globalize.culture.ja-JP.js"></script>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<title>jQuery UI Spinner - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script src="../../external/jquery.mousewheel.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script src="../../external/jquery.mousewheel.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<title>jQuery UI Spinner - Overflow</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script src="../../external/jquery.mousewheel.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<title>jQuery UI Spinner - Time</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.7.2.js"></script>
|
||||
<script src="../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script src="../../external/jquery.mousewheel.js"></script>
|
||||
<script src="../../external/globalize.js"></script>
|
||||
<script src="../../external/globalize.culture.de-DE.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
|
@ -1,11 +1,11 @@
|
||||
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
|
||||
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
|
||||
* Licensed under the MIT License (LICENSE.txt).
|
||||
*
|
||||
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
|
||||
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
|
||||
* Thanks to: Seamus Leahy for adding deltaX and deltaY
|
||||
*
|
||||
* Version: 3.0.4
|
||||
* Version: 3.0.6
|
||||
*
|
||||
* Requires: 1.2.2+
|
||||
*/
|
||||
@ -14,6 +14,12 @@
|
||||
|
||||
var types = ['DOMMouseScroll', 'mousewheel'];
|
||||
|
||||
if ($.event.fixHooks) {
|
||||
for ( var i=types.length; i; ) {
|
||||
$.event.fixHooks[ types[--i] ] = $.event.mouseHooks;
|
||||
}
|
||||
}
|
||||
|
||||
$.event.special.mousewheel = {
|
||||
setup: function() {
|
||||
if ( this.addEventListener ) {
|
||||
@ -53,8 +59,8 @@ function handler(event) {
|
||||
event.type = "mousewheel";
|
||||
|
||||
// Old school scrollwheel delta
|
||||
if ( event.wheelDelta ) { delta = event.wheelDelta/120; }
|
||||
if ( event.detail ) { delta = -event.detail/3; }
|
||||
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
|
||||
if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
|
||||
|
||||
// New school multidimensional scroll (touchpads) deltas
|
||||
deltaY = delta;
|
||||
@ -72,7 +78,7 @@ function handler(event) {
|
||||
// Add event and delta to the front of the arguments
|
||||
args.unshift(event, delta, deltaX, deltaY);
|
||||
|
||||
return $.event.handle.apply(this, args);
|
||||
return ($.event.dispatch || $.event.handle).apply(this, args);
|
||||
}
|
||||
|
||||
})(jQuery);
|
@ -5,7 +5,7 @@
|
||||
<title>jQuery UI Spinner Test Suite</title>
|
||||
|
||||
<script src="../../jquery.js"></script>
|
||||
<script src="../../../external/jquery.mousewheel-3.0.4.js"></script>
|
||||
<script src="../../../external/jquery.mousewheel.js"></script>
|
||||
<script src="../../../external/globalize.js"></script>
|
||||
<script src="../../../external/globalize.culture.ja-JP.js"></script>
|
||||
<link rel="stylesheet" href="../../../external/qunit.css">
|
||||
|
Loading…
Reference in New Issue
Block a user