[fix] do not send mouse click event when cursor is on control bar and display selectable

This commit is contained in:
dijunkun
2025-05-16 19:06:25 +08:00
parent abc6b17a3b
commit 9138ca771f
3 changed files with 3 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ int Render::ProcessMouseEvent(SDL_Event &event) {
remote_action.m.flag = MouseFlag::move;
}
if (props->control_bar_hovered_) {
if (props->control_bar_hovered_ || props->display_selectable_hovered_) {
remote_action.m.flag = MouseFlag::move;
}
SendDataFrame(props->peer_, (const char *)&remote_action,