Skip to content

Commit 924beb5

Browse files
committed
pluma-notebook: avoid new file with double click in vertical scrollbar
Fixes #333
1 parent 3742ba4 commit 924beb5

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
@@ -650,8 +650,6 @@ button_press_cb (PlumaNotebook *notebook,
650650
(event->type == GDK_BUTTON_PRESS) &&
651651
(tab_clicked >= 0))
652652
{
653-
leftdown = TRUE;
654-
655653
notebook->priv->x_start = event->x_root;
656654
notebook->priv->y_start = event->y_root;
657655

@@ -700,11 +698,13 @@ button_press_cb (PlumaNotebook *notebook,
700698
else if (event->type == GDK_2BUTTON_PRESS)
701699
{
702700
if ((tab1click != gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook))) ||
703-
(tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile)))
701+
(tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile)) || (!leftdown))
704702
return TRUE;
705703

706704
newfile = FALSE;
707705
}
706+
707+
leftdown = TRUE;
708708
}
709709

710710
return FALSE;

0 commit comments

Comments
 (0)