jquery_mousewheel_rails 3.1.11.3 → 3.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/assets/javascripts/jquery.mousewheel.js +5 -4
- data/lib/jquery_mousewheel_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d5b94c8c9b6c0fcd4fc1caeb1195c51d451b877
|
4
|
+
data.tar.gz: 6ac7ebec81cf9ced2994e77a8293cc7b94fe6c4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49c447b59e264a24b5dfb8e666ef0b7ef6170528f6c4ad2584af54984a539c655f1aee1368da8a76fb899844975c2a6af148949bc4ff328434324bfad7dc3def
|
7
|
+
data.tar.gz: bc62d09e4f39c96627e7929ec1c091b20cc976c7d4cc9dc11c42879ab96b970f3eab659dfb34335cc5d8521067958f9e4f565e698dffe08d6f9873fbeb680229
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# JqueryMousewheelRails
|
2
2
|
|
3
3
|
Rails asset-pipeline compatible gem wrapper for jQuery-Mousewheel.js
|
4
|
+
see more info on https://github.com/brandonaaron/jquery-mousewheel
|
4
5
|
## Installation
|
5
6
|
|
6
7
|
Add this line to your application's Gemfile:
|
@@ -21,7 +22,7 @@ add this to application.js manifest
|
|
21
22
|
|
22
23
|
//= require jquery-mousewheel
|
23
24
|
|
24
|
-
|
25
|
+
|
25
26
|
## Contributing
|
26
27
|
|
27
28
|
1. Fork it ( https://github.com/[my-github-username]/jquery-mousewheel_rails/fork )
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
2
2
|
* Licensed under the MIT License (LICENSE.txt).
|
3
3
|
*
|
4
|
-
* Version: 3.1.
|
4
|
+
* Version: 3.1.12
|
5
5
|
*
|
6
6
|
* Requires: jQuery 1.2.2+
|
7
7
|
*/
|
@@ -32,7 +32,7 @@
|
|
32
32
|
}
|
33
33
|
|
34
34
|
var special = $.event.special.mousewheel = {
|
35
|
-
version: '3.1.
|
35
|
+
version: '3.1.12',
|
36
36
|
|
37
37
|
setup: function() {
|
38
38
|
if ( this.addEventListener ) {
|
@@ -61,11 +61,12 @@
|
|
61
61
|
},
|
62
62
|
|
63
63
|
getLineHeight: function(elem) {
|
64
|
-
var $
|
64
|
+
var $elem = $(elem),
|
65
|
+
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
|
65
66
|
if (!$parent.length) {
|
66
67
|
$parent = $('body');
|
67
68
|
}
|
68
|
-
return parseInt($parent.css('fontSize'), 10);
|
69
|
+
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
|
69
70
|
},
|
70
71
|
|
71
72
|
getPageHeight: function(elem) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery_mousewheel_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Israeli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|