Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0c53c82

Browse filesBrowse files
committed
remove obsolete scroll check
1 parent 3d9fcf2 commit 0c53c82
Copy full SHA for 0c53c82

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎src/traces/sankey/plot.js

Copy file name to clipboardExpand all lines: src/traces/sankey/plot.js
+5-5Lines changed: 5 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.