mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Minor cleanup in keyboard nav (#3264)
* Clean cursor code Some obvious inefficiencies that jumped out while randomly browsing the compiled code. * Typos * Multiplying by minus one.
This commit is contained in:
@@ -96,9 +96,9 @@ Blockly.zelos.ConstantProvider.prototype.makeHexagonal = function() {
|
||||
var width = height / 2;
|
||||
var forward = up ? -1 : 1;
|
||||
var direction = right ? -1 : 1;
|
||||
|
||||
return Blockly.utils.svgPaths.lineTo(-1 * direction * width, forward * height / 2) +
|
||||
Blockly.utils.svgPaths.lineTo(direction * width, forward * height / 2);
|
||||
var dy = forward * height / 2;
|
||||
return Blockly.utils.svgPaths.lineTo(-direction * width, dy) +
|
||||
Blockly.utils.svgPaths.lineTo(direction * width, dy);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user