mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Fixes bumping too much when in RTL
This commit is contained in:
@@ -106,7 +106,8 @@ Blockly.RenderedConnection.prototype.bumpAwayFrom_ = function(staticConnection)
|
||||
dy = -dy;
|
||||
}
|
||||
if (rootBlock.RTL) {
|
||||
dx = -dx;
|
||||
dx = (staticConnection.x_ - Blockly.SNAP_RADIUS -
|
||||
Math.floor(Math.random() * Blockly.BUMP_RANDOMNESS)) - this.x_;
|
||||
}
|
||||
rootBlock.moveBy(dx, dy);
|
||||
selected || rootBlock.removeSelect();
|
||||
|
||||
Reference in New Issue
Block a user