Skip to content

Commit 4755f0b

Browse files
committed
fixed indexing issue again
1 parent 72e7ad9 commit 4755f0b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/app/components/Chart.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,22 @@ class Chart extends Component {
112112
.attr('r', 20);
113113

114114
tooltipDiv.transition()
115-
.duration(200)
115+
.duration(50)
116116
.style('opacity', 0.9);
117117

118118
tooltipDiv.html(JSON.stringify(d.data.stateSnapshot.children[0].state), this)
119-
.style('left', (d3.event.pageX) + 'px')
120-
.style('top', (d3.event.pageY - 28) + 'px');
119+
.style('left', (d3.event.pageX - 90) + 'px')
120+
.style('top', (d3.event.pageY - 65) + 'px');
121121
})
122122
// eslint-disable-next-line no-unused-vars
123123
.on('mouseout', function (d) {
124124
d3.select(this)
125125
.transition()
126-
.duration(200)
126+
.duration(300)
127127
.attr('r', 12);
128128

129129
tooltipDiv.transition()
130-
.duration(500)
130+
.duration(400)
131131
.style('opacity', 0);
132132
});
133133
node

src/extension/background.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,12 @@ chrome.runtime.onMessage.addListener((request, sender) => {
161161
if (!persist) {
162162
tabsObj[tabId].snapshots.splice(1);
163163
// reset children in root node to reset graph
164-
if (tabsObj[tabId].hierarchy) tabsObj[tabId].hierarchy.children = [];
164+
// if (tabsObj[tabId].hierarchy)
165+
tabsObj[tabId].hierarchy.children = [];
165166
// reassigning pointer to the appropriate node to branch off of
166167
tabsObj[tabId].currLocation = tabsObj[tabId].hierarchy;
167168
// reset index
168-
tabsObj[tabId].index = 0;
169+
tabsObj[tabId].index = 1;
169170

170171
// send a message to devtools
171172
portsArr.forEach(bg => bg.postMessage({

0 commit comments

Comments
 (0)