summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-03 11:44:23 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:42:48 -0500
commit9a0965ff02685c0343bd12a4b572615ee09e0f70 (patch)
tree8ad35892e7a3f630f9d3d91b5cb0d23897059a30
parenta27a03a9892142452766077cae77072662054952 (diff)
return correct values from bryce post event callbacks
I referenced elm scrollable for this when writing it. past me was a moron for using reference code instead of reading the underlying implementation. fixes scrolling
-rw-r--r--src/bin/e_bryce.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index 0bcb8390b..6ef714e6d 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -566,13 +566,13 @@ _bryce_mouse_down_post(void *data, Evas *e EINA_UNUSED)
566 566
567 ev = b->event_info; 567 ev = b->event_info;
568 b->event_info = NULL; 568 b->event_info = NULL;
569 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE; 569 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_TRUE;
570 if (e_bindings_mouse_down_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev)) 570 if (e_bindings_mouse_down_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev))
571 return EINA_TRUE; 571 return EINA_FALSE;
572 if (ev->button != 3) return EINA_FALSE; 572 if (ev->button != 3) return EINA_TRUE;
573 b->last_timestamp = ev->timestamp; 573 b->last_timestamp = ev->timestamp;
574 _bryce_act_menu_job(b); 574 _bryce_act_menu_job(b);
575 return EINA_TRUE; 575 return EINA_FALSE;
576} 576}
577 577
578static void 578static void
@@ -592,8 +592,8 @@ _bryce_mouse_up_post(void *data, Evas *e EINA_UNUSED)
592 592
593 ev = b->event_info; 593 ev = b->event_info;
594 b->event_info = NULL; 594 b->event_info = NULL;
595 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE; 595 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_TRUE;
596 return !!e_bindings_mouse_up_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev); 596 return !e_bindings_mouse_up_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev);
597} 597}
598 598
599static void 599static void
@@ -613,8 +613,8 @@ _bryce_mouse_wheel_post(void *data, Evas *e EINA_UNUSED)
613 613
614 ev = b->event_info; 614 ev = b->event_info;
615 b->event_info = NULL; 615 b->event_info = NULL;
616 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE; 616 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_TRUE;
617 return !!e_bindings_wheel_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev); 617 return !e_bindings_wheel_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev);
618} 618}
619 619
620static void 620static void