Skip to content

Browser zooms cause issues with mouse xy positions #1048

@HiveTechDev

Description

@HiveTechDev

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.

  1. https://dygraphs.com/tutorial.html
  • in console enter: document.body.style.zoom = "80%"
  • You can see this with any of the demos
  1. Chrome, if zoom is done programmatically with the above. Older IE browsers.
  2. 2.2.1 - But again, whats live on website.

If there is a workaround for this, would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions