Merge pull request #3652 from myk002/myk_resize_edge

[widgets.Panel] correctly fire on_resize_end events
develop
Myk 2023-08-07 16:13:58 -07:00 committed by GitHub
commit 3b677854ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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