Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
MEP22 Navigation toolbar coexistence TODELETE#2759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
dda0cdc10f5dc708a6020c6c0ad31fc29fa979875ec5c4f0f97dfda76b647ad99667aa6c195790495aacfb46fc1d49c4315ba62107ca8626dcc0f16bc703e068dc711bb9f1c72c2e649a99367f3d1be34afdd34c5b49c7a773db882ca6926661417d90ab64f55dd14915ac0918cd241c39f5b74b20dadeff943012cb45019d3c9776e0b7e6File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -3434,6 +3434,9 @@ def _handle_toggle(self, name, event=None, from_toolbar=False): | ||
| for a in self.canvas.figure.get_axes(): | ||
| a.set_navigate_mode(self._toggled) | ||
| # Change the cursor inmediately, don't wait for mouse move | ||
| self._set_cursor(event) | ||
| def get_tools(self): | ||
| """Return the tools controlled by `Navigation`""" | ||
| @@ -3446,7 +3449,10 @@ def get_tools(self): | ||
| 'keymap': keys} | ||
| return d | ||
| def _set_cursor(self, event): | ||
| """Call the backend specific set_cursor method, | ||
| if the pointer is inaxes | ||
| """ | ||
| if not event.inaxes or not self._toggled: | ||
| if self._last_cursor != self._default_cursor: | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Do we need this if statement? Do we get a significant performance hit without it? MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. In this case, I don't know, it is a copy paste from | ||
| self.set_cursor(self._default_cursor) | ||
| @@ -3458,6 +3464,9 @@ def _mouse_move(self, event): | ||
| self.set_cursor(cursor) | ||
| self._last_cursor = cursor | ||
| def _mouse_move(self, event): | ||
| self._set_cursor(event) | ||
| if self.toolbar is None or self.messagelock.locked(): | ||
| return | ||