We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d693141 commit 075903fCopy full SHA for 075903f
Basalt/Frame.lua
@@ -885,20 +885,20 @@ return function(name, parent, pTerm, basalt)
885
end
886
end,
887
888
- mouseHandler = function(self, button, x, y, _, side)
+ mouseHandler = function(self, button, x, y, touch, side)
889
if(isGroupedMonitor)then
890
if(termObject.calculateClick~=nil)then
891
x, y = termObject.calculateClick(side, x, y)
892
893
894
- if(base.mouseHandler(self, button, x, y))then
+ if(base.mouseHandler(self, button, x, y, touch))then
895
if(events["mouse_click"]~=nil)then
896
self:setCursor(false)
897
for _, index in ipairs(eventZIndex["mouse_click"]) do
898
if (events["mouse_click"][index] ~= nil) then
899
for _, value in rpairs(events["mouse_click"][index]) do
900
if (value.mouseHandler ~= nil) then
901
- if (value:mouseHandler(button, x, y)) then
+ if (value:mouseHandler(button, x, y, touch)) then
902
903
return true
904
Basalt/main.lua
@@ -436,6 +436,10 @@ basalt = {
436
projectDirectory = dir
437
438
439
+ forceRenderUpdate = function()
440
+ drawFrames()
441
+ end,
442
+
443
debug = function(...)
444
local args = { ... }
445
if(mainFrame==nil)then print(...) return end
Basalt/objects/Dropdown.lua
@@ -124,7 +124,7 @@ return function(name)
124
return dropdownW, dropdownH
125
126
127
- mouseHandler = function(self, button, x, y)
+ mouseHandler = function(self, button, x, y, touch)
128
if (isOpened) then
129
local obx, oby = self:getAbsolutePosition(self:getAnchorPosition())
130
if(button==1)then
@@ -135,6 +135,9 @@ return function(name)
135
self:setValue(list[n + yOffset])
136
self:updateDraw()
137
local val = self:getEventSystem():sendEvent("mouse_click", self, "mouse_click", dir, x, y)
138
+ if(touch)then
139
+ self:mouseUpHandler(button, x, y)
140
+ end
141
if(val==false)then return val end
142
143
0 commit comments