Only call to expand_notification_panel when button is pressed (not released)

This commit is contained in:
brunoais 2021-04-17 16:42:31 +01:00
parent fd9a218828
commit b1af70e044

View file

@ -666,7 +666,9 @@ input_manager_process_mouse_button(struct input_manager *im,
return;
}
if (control && event->button == SDL_BUTTON_X2) {
expand_notification_panel(im->controller);
if(down) {
expand_notification_panel(im->controller);
}
return;
}