projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4a1115
)
Fix Issue 145: Chrome/right-click seems to start implementing zoom bounding boxes.
author
Dan Vanderkam
<dan@dygraphs.com>
Thu, 22 Mar 2012 21:54:53 +0000
(17:54 -0400)
committer
Dan Vanderkam
<dan@dygraphs.com>
Thu, 22 Mar 2012 21:54:53 +0000
(17:54 -0400)
dygraph-interaction-model.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-interaction-model.js
b/dygraph-interaction-model.js
index
2790633
..
b6c19d2
100644
(file)
--- a/
dygraph-interaction-model.js
+++ b/
dygraph-interaction-model.js
@@
-499,6
+499,9
@@
Dygraph.Interaction.endTouch = function(event, g, context) {
Dygraph.Interaction.defaultModel = {
// Track the beginning of drag events
mousedown: function(event, g, context) {
+ // Right-click should not initiate a zoom.
+ if (event.button && event.button == 2) return;
+
context.initializeMouseDown(event, g, context);
if (event.altKey || event.shiftKey) {