Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
cdb5ba94
Commit
cdb5ba94
authored
Apr 08, 2014
by
Carlos Garnacho
Browse files
gesturesingle: check the current sequence before resetting the pressed button
parent
490c3569
Changes
1
Show whitespace changes
Inline
Side-by-side
gtk/gtkgesturesingle.c
View file @
cdb5ba94
...
@@ -169,7 +169,8 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
...
@@ -169,7 +169,8 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
priv
->
current_button
=
button
;
priv
->
current_button
=
button
;
}
}
else
if
(
event
->
type
==
GDK_BUTTON_RELEASE
||
event
->
type
==
GDK_TOUCH_END
)
else
if
(
sequence
==
priv
->
current_sequence
&&
(
event
->
type
==
GDK_BUTTON_RELEASE
||
event
->
type
==
GDK_TOUCH_END
))
priv
->
current_button
=
0
;
priv
->
current_button
=
0
;
return
GTK_EVENT_CONTROLLER_CLASS
(
gtk_gesture_single_parent_class
)
->
handle_event
(
controller
,
event
);
return
GTK_EVENT_CONTROLLER_CLASS
(
gtk_gesture_single_parent_class
)
->
handle_event
(
controller
,
event
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment