Skip to content

Commit 693315b

Browse files
jasnooMarkTeetsminzo-kimyuanjackie1
committed
updated hover functionality in history tab
Co-authored-by: Mark Teets <[email protected]> Co-authored-by: Minzo Kim <[email protected]> Co-authored-by: Jackie Yuan <[email protected]>
1 parent a412afa commit 693315b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/StateRoute/History.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ function History(props: Record<string, unknown>): JSX.Element {
194194
.select('.display')
195195
.append('div')
196196
.attr('class', 'tooltip')
197-
.style('left', `${x}px`)
198-
.style('top', `${y}px`);
197+
.style('left', `${event.clientX}px`)
198+
.style('top', `${event.clientY}px`);
199199
d3.selectAll('.tooltip').html(findDiff(d.data.index));
200200
})
201201
.on('mouseout', (d) => {

0 commit comments

Comments
 (0)