File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ module.exports = function plot(gd, calcData) {
131
131
var hoverCenterY = boundingBox . top + boundingBox . height / 2 ;
132
132
133
133
var tooltip = Fx . loneHover ( {
134
- x : hoverCenterX - rootBBox . left + window . scrollX ,
135
- y : hoverCenterY - rootBBox . top + window . scrollY ,
134
+ x : hoverCenterX - rootBBox . left ,
135
+ y : hoverCenterY - rootBBox . top ,
136
136
name : d3 . format ( d . valueFormat ) ( d . link . value ) + d . valueSuffix ,
137
137
text : [
138
138
d . link . label ,
@@ -181,9 +181,9 @@ module.exports = function plot(gd, calcData) {
181
181
var hoverCenterY = boundingBox . top + boundingBox . height / 4 - rootBBox . top ;
182
182
183
183
var tooltip = Fx . loneHover ( {
184
- x0 : hoverCenterX0 + window . scrollX ,
185
- x1 : hoverCenterX1 + window . scrollX ,
186
- y : hoverCenterY + window . scrollY ,
184
+ x0 : hoverCenterX0 ,
185
+ x1 : hoverCenterX1 ,
186
+ y : hoverCenterY ,
187
187
name : d3 . format ( d . valueFormat ) ( d . node . value ) + d . valueSuffix ,
188
188
text : [
189
189
d . node . label ,
You can’t perform that action at this time.
0 commit comments