replace Blocks.utils.is3dSupported with constant value function

This commit is contained in:
Michael "Z" Goddard committed 2019-05-01 17:31:39 -04:00
1 parent 0b40daf936
commit 65c787d0da
1 file changed
+10
+10
View File
@@ -331,5 +331,15 @@ export default function (vm) {
return collator.compare(str1, str2);
};
// Blocks wants to know if 3D CSS transforms are supported. The cross
// section of browsers Scratch supports and browsers that support 3D CSS
// transforms will make the return always true.
//
// Shortcutting to true lets us skip an expensive style recalculation when
// first loading the Scratch editor.
ScratchBlocks.utils.is3dSupported = function () {
return true;
};
return ScratchBlocks;
}