Skip to content

Use figure enter/leave events to show/hide log buttons on figure mouse hover#579

Merged
nvaytet merged 4 commits into
mainfrom
use-figure-events
Jun 24, 2026
Merged

Use figure enter/leave events to show/hide log buttons on figure mouse hover#579
nvaytet merged 4 commits into
mainfrom
use-figure-events

Conversation

@nvaytet

@nvaytet nvaytet commented Jun 24, 2026

Copy link
Copy Markdown
Member

Instead of using an event that fires every time the mouse moves over the figure, we use the figure enter/leave events which fire only once, thus reducing the amount of callbacks made when a user interacts with a figure.

This does mean that when we have a figure containing subplots, that the buttons appear at the same time on all subplots, but I think that change in behaviour is ok.

Personally I find that the buttons are visible more consistently, and clicking on them is slightly easier (especially the colorbar buttons).

@nvaytet nvaytet merged commit f1f805a into main Jun 24, 2026
5 checks passed
@nvaytet nvaytet deleted the use-figure-events branch June 24, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants