fix: only reset mouse drag context when the dragging button is released
closes #320
This commit is contained in:
parent
1fb3a8828a
commit
fa6ea11d57
2 changed files with 22 additions and 4 deletions
|
|
@ -206,7 +206,7 @@ pub const TabBar = struct {
|
|||
if (self.tabs[dragging].widget.dynamic_cast(Tab.ButtonType)) |btn| btn.hover = false;
|
||||
self.update();
|
||||
for (self.widget_list.widgets.items) |*widgetstate| if (widgetstate.widget.dynamic_cast(Tab.ButtonType)) |btn| if (btn.drag_pos) |_|
|
||||
tui.set_drag_source(&widgetstate.widget);
|
||||
tui.update_drag_source(&widgetstate.widget);
|
||||
tui.refresh_hover();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue