We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b40daf commit 65c787dCopy full SHA for 65c787d
src/lib/blocks.js
@@ -331,5 +331,15 @@ export default function (vm) {
331
return collator.compare(str1, str2);
332
};
333
334
+ // Blocks wants to know if 3D CSS transforms are supported. The cross
335
+ // section of browsers Scratch supports and browsers that support 3D CSS
336
+ // transforms will make the return always true.
337
+ //
338
+ // Shortcutting to true lets us skip an expensive style recalculation when
339
+ // first loading the Scratch editor.
340
+ ScratchBlocks.utils.is3dSupported = function () {
341
+ return true;
342
+ };
343
+
344
return ScratchBlocks;
345
}
0 commit comments