Title: bug: interactions misaligned when plot is inside transform: scale()-ed element · Issue #888 · plotly/plotly.js · GitHub
Open Graph Title: bug: interactions misaligned when plot is inside transform: scale()-ed element · Issue #888 · plotly/plotly.js
X Title: bug: interactions misaligned when plot is inside transform: scale()-ed element · Issue #888 · plotly/plotly.js
Description: See http://codepen.io/hellochar/pen/JKgXPE and mouse around. Looks like plotly.js miscalculates where the mouse is positioned if the plot itself is rendered inside an element with a transform: scale() CSS property set. The tooltips don't...
Open Graph Description: See http://codepen.io/hellochar/pen/JKgXPE and mouse around. Looks like plotly.js miscalculates where the mouse is positioned if the plot itself is rendered inside an element with a transform: scal...
X Description: See http://codepen.io/hellochar/pen/JKgXPE and mouse around. Looks like plotly.js miscalculates where the mouse is positioned if the plot itself is rendered inside an element with a transform: scal...
Opengraph URL: https://github.com/plotly/plotly.js/issues/888
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: interactions misaligned when plot is inside transform: scale()-ed element","articleBody":"See http://codepen.io/hellochar/pen/JKgXPE and mouse around.\n\nLooks like plotly.js miscalculates where the mouse is positioned if the plot itself is rendered inside an element with a `transform: scale()` CSS property set. The tooltips don't match up with where the mouse is. This is most apparent when you try to click+drag an area of the plot and it clearly shows the locations don't match up.\n\nThe buttons in the toolbar line up correctly, as does the hitbox for dragging the axes or enabling/disabling specific traces.\n\nAlso it looks like if you're at the top-left corner of the plot, the mouse position is accurate (that is, the (0, 0) origin point is handled correctly; only the scaling factor is off).\n\nAlso see https://github.com/palantir/plottable/issues/1644 which looks to be the same issue in Plottable.\n\nLet me know if that makes sense and if there's something else I can do!\n","author":{"url":"https://github.com/hellochar","@type":"Person","name":"hellochar"},"datePublished":"2016-08-26T21:43:17Z","url":"https://github.com/plotly/plotly.js/issues/888"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4cda5b8c-2aa2-5f0a-59f6-b2dd91133bf0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBDC:291B58:35370C:436275:6B0104A5 |
| html-safe-nonce | e16c87b7916016bf1b34ae25fe13cace5e27d0d5808460bc9fe57a0d3c9c674c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkRDOjI5MUI1ODozNTM3MEM6NDM2Mjc1OjZCMDEwNEE1IiwidmlzaXRvcl9pZCI6IjcxODQ4Nzg5MTk1NjczNDQ4MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d5e8b84fb6e61e5df4a67ae838863587c5925b439119369e5489f71bf58a316e |
| hovercard-subject-tag | issue:173549482 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/888/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9fb7dafd334186220857a04022b4744e0e918da4f9b084fc3fe88f63b09cf2bd/plotly/plotly.js/issues/888 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9fb7dafd334186220857a04022b4744e0e918da4f9b084fc3fe88f63b09cf2bd/plotly/plotly.js/issues/888 |
| og:image:alt | See http://codepen.io/hellochar/pen/JKgXPE and mouse around. Looks like plotly.js miscalculates where the mouse is positioned if the plot itself is rendered inside an element with a transform: scal... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hellochar |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width