rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=38154ebd0cd9c94f537e56bf2e9d256bdf00c587

commit 38154ebd0cd9c94f537e56bf2e9d256bdf00c587
Author: Viacheslav Reutskyi <reutskiy....@gmail.com>
Date:   Sat Feb 13 21:40:33 2016 +0200

    workspace: turnoff the mouse wheel event while zoom is out
---
 src/bin/ui/workspace/workspace.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index 387a236..5f1882a 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -906,6 +906,7 @@ workspace_highlight_unset(Evas_Object *obj)
    return true;
 }
 
+#if 0
 static void
 _sc_wheel_move(void *data,
                Evas *e __UNUSED__,
@@ -925,6 +926,7 @@ _sc_wheel_move(void *data,
         workspace_zoom_factor_set(workspace, factor - ev->z * 0.1);
      }
 }
+#endif /* #if 0 */
 
 static void
 _workspace_smart_add(Evas_Object *o)
@@ -1220,8 +1222,10 @@ _workspace_child_create(Evas_Object *o, Evas_Object 
*parent)
    elm_object_part_content_set(priv->panes, "left",
                                priv->scroller);
 
+   /*
    evas_object_event_callback_add(priv->scroller, EVAS_CALLBACK_MOUSE_WHEEL,
                                   _sc_wheel_move, o);
+                                  */
    evas_object_smart_callback_add(priv->scroller, "scroll",
                                   _sc_smart_move_cb, o);
    evas_object_smart_callback_add(priv->scroller, "vbar,drag",

-- 


Reply via email to