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
commit b1af70e044

View file

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