Skip to content

Commit c38b692

Browse files
committed
Merge branch 'master' into ui-olympUI
2 parents 8ba0a3b + 5a8c176 commit c38b692

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,15 @@ Lönn supports a couple of keybinds and special mouse functionality, with more t
4949

5050
#### General Controls
5151

52+
- Ctrl + N: New map
5253
- Ctrl + O: Open map
5354
- Drag & drop map file into main window: Open map
5455
- Ctrl + S: Save map
5556
- Ctrl + Shift + S: Save map as...
57+
- Ctrl + T: New room
58+
- Ctrl + Shift + T: Configure current room
5659
- Alt + Arrow keys: Move room (step size 8)
57-
- Ctrl + Alt + Arrow keys: Move room (use 1 as step size instead of 8 for more fine-grained control)
60+
- Alt + Delete: Delete room
5861
- Ctrl + Z: Undo action
5962
- Ctrl + Shift + Z: Redo action
6063
- Scroll wheel: Zoom

src/input_devices/room_resizer.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ function roomResizer.mousemoved(x, y, dx, dy, istouch)
231231
local newWidth = width + deltaX * 8
232232
local newHeight = height + deltaY * 8
233233

234-
if resizeHorizontal and deltaX ~= 0 and newWidth >= itemStruct.recommendedMinimumWidth then
234+
if resizeHorizontal and deltaX ~= 0 and (newWidth >= itemStruct.recommendedMinimumWidth or deltaX > 0) then
235235
madeChanges = true
236236

237237
itemStruct.directionalResize(item, resizeHorizontal, deltaX)
238238
end
239239

240-
if resizeVertical and deltaY ~= 0 and newHeight >= itemStruct.recommendedMinimumHeight then
240+
if resizeVertical and deltaY ~= 0 and (newHeight >= itemStruct.recommendedMinimumHeight or deltaY > 0) then
241241
madeChanges = true
242242

243243
itemStruct.directionalResize(item, resizeVertical, deltaY)

0 commit comments

Comments
 (0)