From b1af89b4a7095e739b52347155ce76b26d1a2c46 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 5 Oct 2009 04:44:56 +0000 Subject: [PATCH] fix shift+middle button zoom area when there are other modifiers in the mask; safe typo fix, everywhere else it's checked this way --- src/event-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event-context.cpp b/src/event-context.cpp index 958e8cb2b..9b846f2b7 100644 --- a/src/event-context.cpp +++ b/src/event-context.cpp @@ -384,7 +384,7 @@ static gint sp_event_context_private_root_handler(SPEventContext *event_context, } break; case 2: - if (event->button.state == GDK_SHIFT_MASK) { + if (event->button.state & GDK_SHIFT_MASK) { zoom_rb = 2; } else { // When starting panning, make sure there are no snap events pending because these might disable the panning again -- 2.30.2