projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add dygraph-types.js
[dygraphs.git]
/
auto_tests
/
tests
/
DygraphOps.js
diff --git
a/auto_tests/tests/DygraphOps.js
b/auto_tests/tests/DygraphOps.js
index
779b845
..
52f5943
100644
(file)
--- a/
auto_tests/tests/DygraphOps.js
+++ b/
auto_tests/tests/DygraphOps.js
@@
-109,8
+109,9
@@
DygraphOps.dispatchDoubleClick = function(g, custom) {
* type, screenX, screenY, clientX, clientY.
*/
DygraphOps.createOptsForPoint_ = function(g, type, x, y) {
* type, screenX, screenY, clientX, clientY.
*/
DygraphOps.createOptsForPoint_ = function(g, type, x, y) {
- var pageX = Dygraph.findPosX(g.canvas_) + x;
- var pageY = Dygraph.findPosY(g.canvas_) + y;
+ var pos = Dygraph.findPos(g.canvas_);
+ var pageX = pos.x + x;
+ var pageY = pos.y + y;
return {
type : type,
return {
type : type,