KEMBAR78
Zoom with mouse wheel only when alt key is pressed by stephanwlee · Pull Request #2221 · tensorflow/tensorboard · GitHub
Skip to content

Conversation

@stephanwlee
Copy link
Contributor

@stephanwlee stephanwlee commented May 9, 2019

Default mouse wheel to zoom is rather obnoxious since large area of the
TensorBoard is zoomable area.

Note that preferably we'd want to provide some tooltip or help to make
this feature discoverable but simple hack using HTMLElement.title felt very
disturbing and poor. We, in later time, might want to consider doing what
Google Map does on mobile (when scroll event happens inside the zoomable
area, it shows shows a transparent splash describing how to zoom). Note that
none of these solutions are friendly to the screen reader softwares.

Fixes #2214.

Default mouse wheel to zoom is rather obnoxious since large area of the
TensorBoard is zoomable area.

Fixes tensorflow#2214.
@stephanwlee stephanwlee requested a review from nfelt May 23, 2019 19:32
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm - at some point we probably need to make this more discoverable, even if a tooltip isn't the best way to do it. Re-using alt makes sense, but since it still only shows the grabbing hand it's not obvious there is any effect other than enabling dragging.

@stephanwlee stephanwlee merged commit be51de4 into tensorflow:master May 30, 2019
@stephanwlee
Copy link
Contributor Author

stephanwlee commented May 30, 2019

I will work on quick follow up to add the Google Map like help when user wheels without pressing alt.

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.

Zoom charts by holding Shift

2 participants