From 6a24ede141b5168ba80b928941f00aa5eed871ea Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 8 Oct 2012 00:11:34 +0200
Subject: Ignore double/triple clicks in LdDiagramView.
Fixes fast rotating.
---
liblogdiag/ld-diagram-view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'liblogdiag')
diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c
index 1564c6b..1d2764c 100644
--- a/liblogdiag/ld-diagram-view.c
+++ b/liblogdiag/ld-diagram-view.c
@@ -2232,7 +2232,8 @@ on_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
LdDiagramView *self;
self = LD_DIAGRAM_VIEW (widget);
- if (!self->priv->diagram)
+ if (!self->priv->diagram
+ || event->type != GDK_BUTTON_PRESS)
return FALSE;
point.x = event->x;
--
cgit v1.2.3-70-g09d2