correctly fire on_resize_end events from Panel

develop
Myk Taylor 2023-08-07 16:01:56 -07:00
parent 139a3a5ae8
commit 5fbff18d64
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

@ -236,8 +236,9 @@ local function Panel_end_drag(self, frame, success)
else
self:setFocus(false)
end
local resize_edge = self.resize_edge
Panel_update_frame(self, frame, true)
if self.resize_edge then
if resize_edge then
if self.on_resize_end then self.on_resize_end(success) end
else
if self.on_drag_end then self.on_drag_end(success) end