diff options
-rw-r--r-- | src/Layout.mjs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Layout.mjs b/src/Layout.mjs index 83b92a7..1b5656d 100644 --- a/src/Layout.mjs +++ b/src/Layout.mjs | |||
@@ -175,6 +175,11 @@ export class Overlay extends Layout { | |||
175 | // FIXME It is weird rect from this method and this scope are different... | 175 | // FIXME It is weird rect from this method and this scope are different... |
176 | blocks.forEach(this.saveLeftTopAsData) | 176 | blocks.forEach(this.saveLeftTopAsData) |
177 | 177 | ||
178 | // If no block are focused, focus first three blocks (make them visible) | ||
179 | if (!blocks.find(b => b.classList.contains('focus'))) { | ||
180 | blocks.slice(0, 3).forEach(b => b.classList.add('focus')) | ||
181 | } | ||
182 | |||
178 | // Create draggable blocks and set each position by previous one | 183 | // Create draggable blocks and set each position by previous one |
179 | let [left, top] = [20, 20] | 184 | let [left, top] = [20, 20] |
180 | blocks.forEach(block => { | 185 | blocks.forEach(block => { |