Fix mouse drag condition in Frame and set default vOffset in List render function

This commit is contained in:
Robert Jelic
2025-10-30 07:43:18 +01:00
parent ba82eaf2e9
commit 8eb3a095d3
2 changed files with 2 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ end
--- @return boolean handled Whether the event was handled
--- @protected
function Frame:mouse_drag(button, x, y)
if self.get("clicked") and self.dragging then
if self:hasState("clicked") and self.dragging then
local newX = x - self.dragStartX
local newY = y - self.dragStartY