From cc465329a2261b7db11c12665cab62affb266592 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 10 Jul 2020 21:29:14 +0200 Subject: start with the mouseenter, and the export ;) --- frontend/views/graph/components/page.handle.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontend/views/graph/components/page.handle.js') diff --git a/frontend/views/graph/components/page.handle.js b/frontend/views/graph/components/page.handle.js index be05a1a..7093399 100644 --- a/frontend/views/graph/components/page.handle.js +++ b/frontend/views/graph/components/page.handle.js @@ -23,7 +23,7 @@ export default class PageHandle extends Component { this.props.onMeasure({ id, width, height }) } render() { - const { graph, page, bounds, box, onMouseDown } = this.props + const { graph, page, bounds, box, onMouseDown, onMouseEnter, onMouseLeave } = this.props let style; if (box) { style = { @@ -46,6 +46,8 @@ export default class PageHandle extends Component { className={className} ref={this.ref} onMouseDown={onMouseDown} + onMouseEnter={onMouseEnter} + onMouseLeave={onMouseLeave} onDoubleClick={() => history.push(url)} style={style} > -- cgit v1.2.3-70-g09d2