Skip to content
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

Fix heatmap/image traces without zsmooth on Safari/iOS #6605

Merged
merged 5 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/6605_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix heatmap rendering on Safari when `zsmooth` is set to false [[#6605](https://github.com/plotly/plotly.js/pull/6605)], with thanks to @lvlte for the contribution!
3 changes: 2 additions & 1 deletion src/lib/supports_pixelated_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ function supportsPixelatedImage() {
if(_supportsPixelated !== null) { // only run the feature detection once
return _supportsPixelated;
}
if(Lib.isIE()) {
if(Lib.isIE() || Lib.isSafari() || lib.isIOS()) {
// NB. Safari passes the test below but the final rendering is not pixelated
_supportsPixelated = false;
} else {
var declarations = Array.from(constants.CSS_DECLARATIONS).reverse();
Expand Down