<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>
<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>
<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>
<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>
<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>
<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>
+++ /dev/null
-/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)\r
- * Licensed under the MIT License (LICENSE.txt).\r
- *\r
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.\r
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.\r
- * Thanks to: Seamus Leahy for adding deltaX and deltaY\r
- *\r
- * Version: 3.0.4\r
- * \r
- * Requires: 1.2.2+\r
- */\r
-\r
-(function($) {\r
-\r
-var types = ['DOMMouseScroll', 'mousewheel'];\r
-\r
-$.event.special.mousewheel = {\r
- setup: function() {\r
- if ( this.addEventListener ) {\r
- for ( var i=types.length; i; ) {\r
- this.addEventListener( types[--i], handler, false );\r
- }\r
- } else {\r
- this.onmousewheel = handler;\r
- }\r
- },\r
- \r
- teardown: function() {\r
- if ( this.removeEventListener ) {\r
- for ( var i=types.length; i; ) {\r
- this.removeEventListener( types[--i], handler, false );\r
- }\r
- } else {\r
- this.onmousewheel = null;\r
- }\r
- }\r
-};\r
-\r
-$.fn.extend({\r
- mousewheel: function(fn) {\r
- return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");\r
- },\r
- \r
- unmousewheel: function(fn) {\r
- return this.unbind("mousewheel", fn);\r
- }\r
-});\r
-\r
-\r
-function handler(event) {\r
- var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;\r
- event = $.event.fix(orgEvent);\r
- event.type = "mousewheel";\r
- \r
- // Old school scrollwheel delta\r
- if ( event.wheelDelta ) { delta = event.wheelDelta/120; }\r
- if ( event.detail ) { delta = -event.detail/3; }\r
- \r
- // New school multidimensional scroll (touchpads) deltas\r
- deltaY = delta;\r
- \r
- // Gecko\r
- if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {\r
- deltaY = 0;\r
- deltaX = -1*delta;\r
- }\r
- \r
- // Webkit\r
- if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }\r
- if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }\r
- \r
- // Add event and delta to the front of the arguments\r
- args.unshift(event, delta, deltaX, deltaY);\r
- \r
- return $.event.handle.apply(this, args);\r
-}\r
-\r
-})(jQuery);
\ No newline at end of file
--- /dev/null
+/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)\r
+ * Licensed under the MIT License (LICENSE.txt).\r
+ *\r
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.\r
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.\r
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY\r
+ *\r
+ * Version: 3.0.6\r
+ *\r
+ * Requires: 1.2.2+\r
+ */\r
+\r
+(function($) {\r
+\r
+var types = ['DOMMouseScroll', 'mousewheel'];\r
+\r
+if ($.event.fixHooks) {\r
+ for ( var i=types.length; i; ) {\r
+ $.event.fixHooks[ types[--i] ] = $.event.mouseHooks;\r
+ }\r
+}\r
+\r
+$.event.special.mousewheel = {\r
+ setup: function() {\r
+ if ( this.addEventListener ) {\r
+ for ( var i=types.length; i; ) {\r
+ this.addEventListener( types[--i], handler, false );\r
+ }\r
+ } else {\r
+ this.onmousewheel = handler;\r
+ }\r
+ },\r
+\r
+ teardown: function() {\r
+ if ( this.removeEventListener ) {\r
+ for ( var i=types.length; i; ) {\r
+ this.removeEventListener( types[--i], handler, false );\r
+ }\r
+ } else {\r
+ this.onmousewheel = null;\r
+ }\r
+ }\r
+};\r
+\r
+$.fn.extend({\r
+ mousewheel: function(fn) {\r
+ return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");\r
+ },\r
+\r
+ unmousewheel: function(fn) {\r
+ return this.unbind("mousewheel", fn);\r
+ }\r
+});\r
+\r
+\r
+function handler(event) {\r
+ var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;\r
+ event = $.event.fix(orgEvent);\r
+ event.type = "mousewheel";\r
+\r
+ // Old school scrollwheel delta\r
+ if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }\r
+ if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }\r
+\r
+ // New school multidimensional scroll (touchpads) deltas\r
+ deltaY = delta;\r
+\r
+ // Gecko\r
+ if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {\r
+ deltaY = 0;\r
+ deltaX = -1*delta;\r
+ }\r
+\r
+ // Webkit\r
+ if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }\r
+ if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }\r
+\r
+ // Add event and delta to the front of the arguments\r
+ args.unshift(event, delta, deltaX, deltaY);\r
+\r
+ return ($.event.dispatch || $.event.handle).apply(this, args);\r
+}\r
+\r
+})(jQuery);
\ No newline at end of file
<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">