Skip to content

Commit

Permalink
Right click on harmonies canvas to set background color.
Browse files Browse the repository at this point in the history
  • Loading branch information
behreajj committed Oct 11, 2024
1 parent 06ac1c5 commit 14152d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ok_picker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,9 @@ local function onMouseUpHarmony(event)
b8 <const> = string.byte(
active.byteStrHarmony, 1 + xIdx * 4, 3 + xIdx * 4)

local useBack <const> = active.useBack
local useBack <const> = event.button == MouseButton.RIGHT
or (event.button == MouseButton.LEFT
and event.ctrlKey)
local alphaActive <const> = useBack
and active.alphaBack
or active.alphaFore
Expand Down

0 comments on commit 14152d0

Please sign in to comment.