From ede9af54010eab4eb6ee1b81fe9d6a0333846e88 Mon Sep 17 00:00:00 2001 From: the lemons Date: Thu, 22 Dec 2022 16:21:14 -0600 Subject: do not initiate drag selection when holding shift --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 5eb7b54..619b5ec 100644 --- a/main.lua +++ b/main.lua @@ -108,7 +108,7 @@ function love.draw() end function love.update() - if not (selection or dragging) then + if not (selection or selecting) then for o in obj.all() do o:tick() end @@ -155,7 +155,7 @@ function love.mousemoved(x, y, dx, dy) if drag_start then if not dragging then local clicked = obj.at(x, y)() - selecting = not clicked + selecting = not clicked and not love.keyboard.isDown "lshift" end if selecting then local sx, sy = unpack(drag_start) -- cgit v1.2.3