Issue #7843: Middle clicking while manipulating canvas with spacebar…

… causes failed assertion.
This commit is contained in:
Jehan 2022-03-25 23:02:07 +01:00
parent 2748dfe83c
commit 7ca324fb2d
1 changed files with 4 additions and 1 deletions

View File

@ -700,7 +700,10 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
}
else if (bevent->button == 2)
{
if (shell->scrolling)
if (shell->scrolling &&
! shell->button1_release_pending &&
(! shell->space_release_pending ||
shell->display->config->space_bar_action != GIMP_SPACE_BAR_ACTION_PAN))
gimp_display_shell_stop_scrolling (shell, event);
}
else if (bevent->button == 3)