Disallow wheel zooming when holding mouse buttons.
This commit is contained in:
parent
cd66c3d84a
commit
82bf779405
1
NEWS
1
NEWS
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue