Skip to content

Commit

Permalink
moving the cursor, the bin where to go by clicking is updated; the cu…
Browse files Browse the repository at this point in the history
…rsor icon changes when it is on the navigation bar #86
  • Loading branch information
AndreaGuarracino committed Jun 23, 2020
1 parent f1152c0 commit f1163d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ class App extends Component {
this.props.store.getEndBin()
);
};
handleMouseOver = (event) => {
handleMouseMove = (event) => {
this.props.store.updateCellTooltipContent(
"Go to bin: " +
Math.floor(
Expand Down Expand Up @@ -862,6 +862,7 @@ class App extends Component {
<Stage
x={this.props.store.leftOffset}
y={this.props.topOffset}
style={{ cursor: "pointer" }}
width={navigation_bar_width + 2}
height={this.props.store.heightNavigationBar + 4}
>
Expand All @@ -873,7 +874,7 @@ class App extends Component {
fill={"lightblue"}
stroke={"gray"}
strokeWidth={2}
onMouseOver={this.handleMouseOver}
onMouseMove={this.handleMouseMove}
onMouseOut={this.handleMouseOut}
onClick={this.handleClick}
/>
Expand Down

0 comments on commit f1163d8

Please sign in to comment.