Compare commits

...

2 Commits

Author SHA1 Message Date
37adaac965
Let modified wheel events scroll the view 2021-11-14 03:37:09 +01:00
1dce2e079c
Fix a typo 2021-11-14 03:37:08 +01:00

View File

@ -269,6 +269,8 @@ fastiv_view_scroll_event(GtkWidget *widget, GdkEventScroll *event)
FastivView *self = FASTIV_VIEW(widget);
if (!self->surface)
return FALSE;
if (event->state & gtk_accelerator_get_default_mod_mask())
return FALSE;
switch (event->direction) {
case GDK_SCROLL_UP:
@ -312,7 +314,7 @@ fastiv_view_class_init(FastivViewClass *klass)
"scale", "Scale", "Zoom level",
0, G_MAXDOUBLE, 1.0, G_PARAM_READABLE);
view_properties[PROP_SCALE_TO_FIT] = g_param_spec_boolean(
"scale-to-fit", "Scale to fit", "Scale images doewn to fit the window",
"scale-to-fit", "Scale to fit", "Scale images down to fit the window",
TRUE, G_PARAM_READABLE);
g_object_class_install_properties(
object_class, N_PROPERTIES, view_properties);