jquery-mousewheel
Advanced tools
Comparing version 3.1.11 to 3.1.12
# Mouse Wheel ChangeLog | ||
## 3.1.12 | ||
* Fix possible 0 value for line height when in delta mode 1 | ||
## 3.1.11 | ||
@@ -4,0 +8,0 @@ |
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh) | ||
* Licensed under the MIT License (LICENSE.txt). | ||
* | ||
* Version: 3.1.11 | ||
* Version: 3.1.12 | ||
* | ||
@@ -35,3 +35,3 @@ * Requires: jQuery 1.2.2+ | ||
var special = $.event.special.mousewheel = { | ||
version: '3.1.11', | ||
version: '3.1.12', | ||
@@ -65,7 +65,8 @@ setup: function() { | ||
getLineHeight: function(elem) { | ||
var $parent = $(elem)['offsetParent' in $.fn ? 'offsetParent' : 'parent'](); | ||
var $elem = $(elem), | ||
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent'](); | ||
if (!$parent.length) { | ||
$parent = $('body'); | ||
} | ||
return parseInt($parent.css('fontSize'), 10); | ||
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16; | ||
}, | ||
@@ -72,0 +73,0 @@ |
{ | ||
"name": "jquery-mousewheel", | ||
"version": "3.1.11", | ||
"version": "3.1.12", | ||
"author": "Brandon Aaron (http://brandon.aaron.sh)", | ||
@@ -5,0 +5,0 @@ "description": "A jQuery plugin that adds cross-browser mouse wheel support.", |
15505
189