Skip to content

Commit

Permalink
Merge branch 'master' into ui-olympUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruor committed May 13, 2023
2 parents 897646c + fe23773 commit bcc1058
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ Lönn supports a couple of keybinds and special mouse functionality, with more t
- Left click: Select object
- Left click existing selection: Cycle through objects under cursor (smallest to largest)
- Left click & drag: Select multiple objects
- Shift + Left click & drag: Add to current selection
- Ctrl + A: Select all objects
- Right click selection: Open properties of selected object(s)
- Holding Left mouse button over selection: Drag selected objects
- Shift + Holding Left mouse button over selection: Axis-bound object dragging
Expand Down
7 changes: 4 additions & 3 deletions src/tools/selection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1004,14 +1004,15 @@ local function selectionFinished(x, y, fromClick)
selectionRectangle = false
selectionCompleted = true

local doingMouseActions = movementActive or resizeDirection

-- Special case, otherwise we lose some selections
if not fromClick and not movementActive and not resizeDirection then
if not fromClick and not doingMouseActions then
updateSelectionTargetsFromPreviews(addModifier)
tiles.selectionsChanged(selectionTargets)

selectionPreviews = {}
end

tiles.selectionsChanged(selectionTargets)
end

local function resizeStarted(x, y)
Expand Down

0 comments on commit bcc1058

Please sign in to comment.