Skip to content

Commit 79f71d7

Browse files
committed
pluma-notebook: avoid new file with double click in vertical scrollbar
Fixes #333
1 parent ea60fd3 commit 79f71d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pluma/pluma-notebook.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,6 @@ button_press_cb (PlumaNotebook *notebook,
624624
(event->type == GDK_BUTTON_PRESS) &&
625625
(tab_clicked >= 0))
626626
{
627-
leftdown = TRUE;
628-
629627
notebook->priv->x_start = event->x_root;
630628
notebook->priv->y_start = event->y_root;
631629

@@ -674,11 +672,13 @@ button_press_cb (PlumaNotebook *notebook,
674672
else if (event->type == GDK_2BUTTON_PRESS)
675673
{
676674
if ((tab1click != gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook))) ||
677-
(tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile)))
675+
(tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile)) || (!leftdown))
678676
return TRUE;
679677

680678
newfile = FALSE;
681679
}
680+
681+
leftdown = TRUE;
682682
}
683683

684684
return FALSE;

0 commit comments

Comments
 (0)