mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-12 22:19:17 -04:00
Fade out trashcan when closed.
This commit is contained in:
parent
cefb9385ae
commit
1235c1e80c
7 changed files with 38 additions and 30 deletions
core
|
@ -31,6 +31,7 @@ goog.provide('Blockly.Workspace');
|
|||
goog.require('Blockly.ScrollbarPair');
|
||||
goog.require('Blockly.Trashcan');
|
||||
goog.require('Blockly.Xml');
|
||||
goog.require('goog.math');
|
||||
|
||||
|
||||
/**
|
||||
|
@ -211,7 +212,7 @@ Blockly.Workspace.prototype.getTopBlocks = function(ordered) {
|
|||
// Copy the topBlocks_ list.
|
||||
var blocks = [].concat(this.topBlocks_);
|
||||
if (ordered && blocks.length > 1) {
|
||||
var offset = Math.sin(Blockly.Workspace.SCAN_ANGLE / 180 * Math.PI);
|
||||
var offset = Math.sin(goog.math.toRadians(Blockly.Workspace.SCAN_ANGLE));
|
||||
if (Blockly.RTL) {
|
||||
offset *= -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue