Some browser's zoom behavior makes the x/y mouse position thrown off. When programmatically changing the zoom it looks like the canvas offset gets thrown off of the x/y and will cause hover and button clicks to be left/right depending on the zoom amount.
You can see this on any of the demos.
- https://dygraphs.com/tutorial.html
- in console enter:
document.body.style.zoom = "80%"
- You can see this with any of the demos
- Chrome, if zoom is done programmatically with the above. Older IE browsers.
- 2.2.1 - But again, whats live on website.
If there is a workaround for this, would be great.