Disallow wheel zooming when holding mouse buttons.

This commit is contained in:
Přemysl Eric Janouch 2011-06-09 13:42:43 +02:00
parent cd66c3d84a
commit 82bf779405
2 changed files with 5 additions and 0 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
Version TBD Version TBD
- Fixed checking for the shift key when selecting. - Fixed checking for the shift key when selecting.
- Terminals are ignored when hovering the cursor above a selection. - Terminals are ignored when hovering the cursor above a selection.
- Disallowed wheel zooming when holding mouse buttons.
Version 0.1.2 Version 0.1.2
- Updated symbol library. - Updated symbol library.

View File

@ -2298,6 +2298,10 @@ on_scroll (GtkWidget *widget, GdkEventScroll *event, gpointer user_data)
point.y = event->y; point.y = event->y;
self = LD_DIAGRAM_VIEW (widget); self = LD_DIAGRAM_VIEW (widget);
if (self->priv->operation != OPER_0
&& self->priv->operation != OPER_ADD_OBJECT)
return TRUE;
ld_diagram_view_widget_to_diagram_coords (self, ld_diagram_view_widget_to_diagram_coords (self,
event->x, event->y, &prev_x, &prev_y); event->x, event->y, &prev_x, &prev_y);