Socket
Socket
Sign inDemoInstall

jquery-mousewheel

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.11 to 3.1.12

4

ChangeLog.md
# 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 @@

9

jquery.mousewheel.js
/*! 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.",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc