app: return from gimp_display_shell_space_pressed() immediately when...

... scrolling in progress.
In particular, this could happen while panning with mouse middle click
and hitting space. This space should simply be ignored.
This commit is contained in:
Jehan 2018-03-16 19:32:10 +01:00
parent 9c663a6574
commit 8aaf77ba11
1 changed files with 1 additions and 1 deletions

View File

@ -1580,7 +1580,7 @@ gimp_display_shell_space_pressed (GimpDisplayShell *shell,
{
Gimp *gimp = gimp_display_get_gimp (shell->display);
if (shell->space_release_pending)
if (shell->space_release_pending || shell->scrolling)
return;
if (! gimp_display_shell_keyboard_grab (shell, event))