Fix problem with mouse cursor over dividers

This commit is contained in:
Francesco Abbate 2021-05-28 15:35:46 +02:00
parent 818a7abb0a
commit f7e3e41ab1
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ end
function Node:get_scroll_button_index(px, py)
if #self.views == 1 then return 0 end
if #self.views == 1 then return end
for i = 1, 2 do
local x, y, w, h = self:get_scroll_button_rect(i)
if px >= x and px < x + w and py >= y and py < y + h then