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
b6d392b2
Commit
b6d392b2
authored
Dec 03, 2013
by
Neil Katin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix jslint issues with previous version
parent
518396a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
jquery.flot.selection.js
jquery.flot.selection.js
+6
-6
No files found.
jquery.flot.selection.js
View file @
b6d392b2
...
@@ -111,9 +111,9 @@ The plugin allso adds the following methods to the plot object:
...
@@ -111,9 +111,9 @@ The plugin allso adds the following methods to the plot object:
}
}
function
onMouseDown
(
e
)
{
function
onMouseDown
(
e
)
{
if
(
e
.
type
===
'touchstart'
&&
e
.
originalEvent
.
touches
.
length
===
1
)
{
// only accept single touch
if
(
e
.
type
===
"touchstart"
&&
e
.
originalEvent
.
touches
.
length
===
1
)
{
// only accept single touch
selection
.
touch
=
true
;
selection
.
touch
=
true
;
}
else
if
(
e
.
which
!=
1
||
e
.
originalEvent
.
touches
&&
e
.
originalEvent
.
touches
.
length
>
1
)
{
// only accept left-click
}
else
if
(
e
.
which
!=
=
1
||
e
.
originalEvent
.
touches
&&
e
.
originalEvent
.
touches
.
length
>
1
)
{
// only accept left-click
return
;
return
;
}
}
...
@@ -328,13 +328,13 @@ The plugin allso adds the following methods to the plot object:
...
@@ -328,13 +328,13 @@ The plugin allso adds the following methods to the plot object:
if
(
o
.
selection
.
mode
!=
null
)
{
if
(
o
.
selection
.
mode
!=
null
)
{
eventHolder
.
mousemove
(
onMouseMove
);
eventHolder
.
mousemove
(
onMouseMove
);
eventHolder
.
mousedown
(
onMouseDown
);
eventHolder
.
mousedown
(
onMouseDown
);
eventHolder
.
bind
(
'touchstart'
,
function
(
e
)
{
eventHolder
.
bind
(
"touchstart"
,
function
(
e
)
{
// Using a touch device, disable mouse events to prevent
// Using a touch device, disable mouse events to prevent
// event handlers being called twice
// event handlers being called twice
eventHolder
.
unbind
(
'mousedown'
,
onMouseDown
);
eventHolder
.
unbind
(
"mousedown"
,
onMouseDown
);
onMouseDown
(
e
);
onMouseDown
(
e
);
});
});
eventHolder
.
bind
(
'touchmove'
,
onMouseMove
);
eventHolder
.
bind
(
"touchmove"
,
onMouseMove
);
}
}
});
});
...
...
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