-
Notifications
You must be signed in to change notification settings - Fork 45
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip window positioned incorrectly when zoomed #218
Comments
Can you check where the positions are coming from? This may be a Vega issue. |
I don't see this issue in Chrome. |
I don't see it on Chrome either, nor on Firefox (although FF doesn't have pinch-zoom anyway). |
The problem isn't due to zooming, it is due to scrolling: tooltip positions are correct when zoomed if the scroll position at the upper-leftmost corner. As the document is scrolled, the tooltips start to drift off from the correct location. It looks like the position is being calculated by https://github.com/vega/vega-tooltip/blob/master/src/position.ts Apparently, |
Hmm, that seems to be incorrect when I scroll. See http://localhost:3000/vega-examples.html for example. |
Is that in Chrome or Safari? It would be a shame if we had to check the user-agent and use different logic for the different browsers. |
This is in chrome. |
I had a similar problem with a vega inside a container with |
When zooming into a visualization in Safari 12.0.2 on macOS 10.14.2, the tooltip window is not displayed at the mouse cursor location. If zoomed in enough, the tooltip window does not appear at all (probably because it is "off-screen"). This happens with both the SVG and Canvas renderers.
The text was updated successfully, but these errors were encountered: