Skip to content

Commit 0c53c82

Browse files
committed
remove obsolete scroll check
1 parent 3d9fcf2 commit 0c53c82

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/traces/sankey/plot.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ module.exports = function plot(gd, calcData) {
131131
var hoverCenterY = boundingBox.top + boundingBox.height / 2;
132132

133133
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,
136136
name: d3.format(d.valueFormat)(d.link.value) + d.valueSuffix,
137137
text: [
138138
d.link.label,
@@ -181,9 +181,9 @@ module.exports = function plot(gd, calcData) {
181181
var hoverCenterY = boundingBox.top + boundingBox.height / 4 - rootBBox.top;
182182

183183
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,
187187
name: d3.format(d.valueFormat)(d.node.value) + d.valueSuffix,
188188
text: [
189189
d.node.label,

0 commit comments

Comments
 (0)