diff options
Diffstat (limited to 'main/src/ui')
| -rw-r--r-- | main/src/ui/conversation_content_view/conversation_view.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala index fb3bfc32..d7660488 100644 --- a/main/src/ui/conversation_content_view/conversation_view.vala +++ b/main/src/ui/conversation_content_view/conversation_view.vala @@ -76,6 +76,8 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins // the pointer motion events as long as the pointer is above the message menu. // This ensures that the currently highlighted item remains unchanged when the pointer // reaches the overlapping part of a button. + main_wrap_event_box.events = EventMask.TOUCH_MASK; + main_wrap_event_box.touch_event.connect(on_touch_event); main_event_box.events = EventMask.POINTER_MOTION_MASK; main_event_box.motion_notify_event.connect(on_motion_notify_event); @@ -109,6 +111,11 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins } } + private bool on_touch_event(Gdk.Event event) { + update_highlight((int)event.touch.x_root, (int)event.touch.y_root); + return false; + } + private bool on_enter_notify_event(Gdk.EventCrossing event) { update_highlight((int)event.x_root, (int)event.y_root); return false; |
