raster pushed a commit to branch master.
commit 09a43e4ce4668476e1ec2fe5044d8c151e99b7cf
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Sat Mar 30 13:18:26 2013 +0900
From: Gustavo Sverzut Barbieri <[email protected]>
Subject: [E-devel] [PATCH] Fix one direction at time scrolling
Would you check if the attached patch is right? It seems that the
negation
was incorrect, inhibiting the one-direction-at-time flag to take
effect as
if there is a scroll (x or y, or '1 || 1 == 1') and it would be negated
evaluating to 0.
This flag should remove the annoying behavior of scroller inside
scroller
when you start dragging in one direction and then move slightly on the
other and it would affect both scrollers. My case is an horizontal panel
with 3 genlists side-by-side. If I start moving from one list to another
and my finger/mouse goes up/down, I don't want the lists to scroll.
Similarly if I'm scrolling the list (vertical) and then I slightly
move my
finger left/right I don't want the panel to change.
It is still annoying that one axis should be the double as the other.
I'd
say that only 50% more would do, suggestions?
If it's right, would you please apply as my devenv is a mess right now
(working from virtualbox on a temp machine)
---
src/lib/elm_interface_scrollable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/elm_interface_scrollable.c
b/src/lib/elm_interface_scrollable.c
index bb769ca..f49e209 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -2938,7 +2938,7 @@ _elm_scroll_mouse_move_event_cb(void *data,
if (y < 0) y = -y;
if ((sid->one_direction_at_a_time) &&
- (!((sid->down.dir_x) || (sid->down.dir_y))))
+ (((sid->down.dir_x) || (sid->down.dir_y))))
{
if (x > _elm_config->thumbscroll_threshold)
{
--
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2