Skip to content

Commit

Permalink
Update docs/user-interaction.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: SEHI L'YI <[email protected]>
  • Loading branch information
etowahadams and sehilyi authored Jun 17, 2024
1 parent 55a16e7 commit f51397c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-interaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Mouse events can be enabled in Gosling by defining a `MouseEvents` object in the

You can use the [JavaScript API](js-api#subscribe) to subscribe to the mouse-related events, i.e., "mouseOver", "rangeSelect", and "click", to create custom interactions with the visualization.
Refer to [gosling-react-example](https://github.com/gosling-lang/gosling-react-example) to see how mouse events can be used in various use cases.
Here is an example of a track with a range selection enabled:
Here is an example of a track with a range selection enabled that enables selecting a genomic range using the click-and-drag interaction after pressing the Alt key:

<img src='/img/doc_images/mouse_interaction.png' width='700' />

Expand Down

0 comments on commit f51397c

Please sign in to comment.