Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
8aa76dc8
Commit
8aa76dc8
authored
May 04, 2012
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated inline jquery.mousewheel plug-in to version 3.0.6 for issue #685.
parent
8d7a7f41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
jquery.flot.navigate.js
jquery.flot.navigate.js
+5
-5
No files found.
jquery.flot.navigate.js
View file @
8aa76dc8
...
...
@@ -92,17 +92,17 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L
/* jquery.mousewheel.min.js
* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
* 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.
2
* Version: 3.0.
6
*
* Requires: 1.2.2+
*/
(
function
(
c
){
var
a
=
[
"DOMMouseScroll"
,
"mousewheel"
];
c
.
event
.
special
.
mousewheel
=
{
setup
:
function
(){
if
(
this
.
addEventListener
){
for
(
var
d
=
a
.
length
;
d
;){
this
.
addEventListener
(
a
[
--
d
],
b
,
false
)}}
else
{
this
.
onmousewheel
=
b
}},
teardown
:
function
(){
if
(
this
.
removeEventListener
){
for
(
var
d
=
a
.
length
;
d
;){
this
.
removeEventListener
(
a
[
--
d
],
b
,
false
)}}
else
{
this
.
onmousewheel
=
null
}}};
c
.
fn
.
extend
({
mousewheel
:
function
(
d
){
return
d
?
this
.
bind
(
"mousewheel"
,
d
):
this
.
trigger
(
"mousewheel"
)},
unmousewheel
:
function
(
d
){
return
this
.
unbind
(
"mousewheel"
,
d
)}});
function
b
(
f
){
var
d
=
[].
slice
.
call
(
arguments
,
1
),
g
=
0
,
e
=
true
;
f
=
c
.
event
.
fix
(
f
||
window
.
event
);
f
.
type
=
"mousewheel"
;
if
(
f
.
wheelDelta
){
g
=
f
.
wheelDelta
/
120
}
if
(
f
.
detail
){
g
=-
f
.
detail
/
3
}
d
.
unshift
(
f
,
g
);
return
c
.
event
.
handle
.
apply
(
this
,
d
)}
})(
jQuery
);
(
function
(
d
){
function
e
(
a
){
var
b
=
a
||
window
.
event
,
c
=
[].
slice
.
call
(
arguments
,
1
),
f
=
0
,
e
=
0
,
g
=
0
,
a
=
d
.
event
.
fix
(
b
);
a
.
type
=
"mousewheel"
;
b
.
wheelDelta
&&
(
f
=
b
.
wheelDelta
/
120
);
b
.
detail
&&
(
f
=-
b
.
detail
/
3
);
g
=
f
;
void
0
!==
b
.
axis
&&
b
.
axis
===
b
.
HORIZONTAL_AXIS
&&
(
g
=
0
,
e
=-
1
*
f
);
void
0
!==
b
.
wheelDeltaY
&&
(
g
=
b
.
wheelDeltaY
/
120
);
void
0
!==
b
.
wheelDeltaX
&&
(
e
=-
1
*
b
.
wheelDeltaX
/
120
);
c
.
unshift
(
a
,
f
,
e
,
g
);
return
(
d
.
event
.
dispatch
||
d
.
event
.
handle
).
apply
(
this
,
c
)}
var
c
=
[
"DOMMouseScroll"
,
"mousewheel"
];
if
(
d
.
event
.
fixHooks
)
for
(
var
h
=
c
.
length
;
h
;)
d
.
event
.
fixHooks
[
c
[
--
h
]]
=
d
.
event
.
mouseHooks
;
d
.
event
.
special
.
mousewheel
=
{
setup
:
function
(){
if
(
this
.
addEventListener
)
for
(
var
a
=
c
.
length
;
a
;)
this
.
addEventListener
(
c
[
--
a
],
e
,
!
1
);
else
this
.
onmousewheel
=
e
},
teardown
:
function
(){
if
(
this
.
removeEventListener
)
for
(
var
a
=
c
.
length
;
a
;)
this
.
removeEventListener
(
c
[
--
a
],
e
,
!
1
);
else
this
.
onmousewheel
=
null
}};
d
.
fn
.
extend
({
mousewheel
:
function
(
a
){
return
a
?
this
.
bind
(
"mousewheel"
,
a
):
this
.
trigger
(
"mousewheel"
)},
unmousewheel
:
function
(
a
){
return
this
.
unbind
(
"mousewheel"
,
a
)}})
})(
jQuery
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment