Skip to content

Commit 5840137

Browse files
committed
Fix heatmap/image traces without zsmooth on Safari
1 parent 18b5097 commit 5840137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/supports_pixelated_image.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function supportsPixelatedImage() {
1515
if(_supportsPixelated !== null) { // only run the feature detection once
1616
return _supportsPixelated;
1717
}
18-
if(Lib.isIE()) {
18+
if(Lib.isIE() || Lib.isSafari()) {
19+
// NB. Safari passes the test below but the final rendering is not pixelated
1920
_supportsPixelated = false;
2021
} else {
2122
var declarations = Array.from(constants.CSS_DECLARATIONS).reverse();

0 commit comments

Comments
 (0)