On Fri, 05 Nov 2010 11:00:29 +0000 (GMT) Seokjae Jeong
<seok.j.je...@samsung.com> said:

ooh no no. sorry misunderstanding here. what i meant was.

1. we have no concept of a scroll flag - we do have on_hold as a flag. flags
can be extended - adding an scroll flag will be useful to set so an object can
know that it is inside a scrollable object (scroller) and that in future an
on_hold flag may be set to put any actions on hold. on_scroll just allows the
object to change behavior policy between mouse down/move/up events that it gets
inside a scroller vs ones it gets when outside of one. it doesnt mean to "put
your actions on hold" - that's "on hold". scroll flag would be set from the
very first mouse down until the last mouse up (and on all moves) by the
scroller. this serves no current purpose other than "provide information we CAN
use in future - and i am pretty sure we will soon enough".

2. handling another press on the scroller while its still scrolling (you press
and hold to stop its momentum scrolling OR you press and drag quickly again to
"continue scrolling") is another matter and on_hold should be used then from
the first mouse down until the last mouse up. scroller does this. it simply
does on mouse down

if (still animating scroll) {
  set the "i have dragged far enough to scroll" flags and start on_hold
immediately
  flag the "i pressed while scrolling already" flag so we can have the motion
vector code use the motion vector not to "set" the scroll position and thus
speed but ADD to it allowing for scroll acceleration if you swipe multiple
times
} else {
  current path;
}

so both of you are right. on_hold can and should be used for the "we press
while its still scrolling" from the very beginning to avoid selecting items
when we want to stop or accelerate scroll. the same logic allows for an
acceleration path too.

in ADDITION setting a scroll flag will be most useful in objects "reacting
differently". we may want to consider some kind of parent/child hint scheme too
that can do this so even before you get events you can query if you are inside
a scroller smart object of some sort. :)

> 
>    raster, do you think I did it in better way?
> 
> 
>    On   Fri,   Nov   5,   2010  at  2:49  AM,  Gustavo  Sverzut  Barbieri
>    <barbi...@profusion.mobi> wrote:
> 
>    On Thu, Nov 4, 2010 at 2:35 PM, Seokjae Jeong <[1]seok...@gmail.com> wrote:
>    > Yes, i did. However, raster told me using ON_SCROLL would be better way.
>    > I
>    could provide the patch with on_hold flag if you want. Then, we don't have
>    to add new event flag. Anyhow, I agree with him.
> 
>      Well, if he thinks so, let's hope he has a good reason to introduce
>      the meaning of "scroll" into Evas, that is not aware of such thing at
>      all :-/
> 
>    ------- Original Message -------
>    Sender : Gustavo Sverzut Barbieri<barbi...@profusion.mobi>
>    Date : 2010-11-05 01:20 (GMT+09:00)
>    Title : Re: [E-devel] down event handling for an item of list/genlist
> during scrolling
>    Hi Seokjae,
>    I cant review the patch right now, but did you try to achieve that
>    with on_hold event flag? It should be possible unless I'm missing
>    something there.
>    On Thursday, November 4, 2010, Seokjae Jeong <seok.j.je...@samsung.com>
> wrot e:
>    >
>    >
>    > Hello there,
>    >
>    >
>    >
>    > I would like to suggest an idea so that genlist/list widget could
>    > properly work when a user touches an item during scrolling or bouncing.
>    >
>    > I believe that the user wants to hold scrolling or speed up the scrolling
>    > for the interaction in general.
>    >
>    > At this moment, list/genlist widgets do like that way. However, it also
>    > do
>    es
>    > item choose operation with touch up event.
>    >
>    > Thus, it runs item-selection operation even if the user just want to hold
>    > the scrolling without select the item.
>    >
>    > Ignoring item-selection operation while scrolling would be more natural
>    > interaction I believe.
>    >
>    > There should be three works to do:
>    >
>    >
>    >
>    > In evas:
>    >
>    > I think we could add a flag like EVAS_EVENT_FLAG_ON_SCROLL enumeration
>    > val
>    ue
>    > in Evas_Event_Flags enum.
>    >
>    > It would not make any break I believe.
>    >
>    >
>    >
>    > In els_scroller:
>    >
>    > As well, there would some work in els_scroller for treating the flags in
>    > _down & _up callbacks.
>    >
>    > We should also add "scroll" member in "down" structure of els_scroller so
>    > that _up callback can recognize
>    >
>    > if previous down event occurred during scrolling.
>    >
>    >
>    >
>    > In elm_list/elm_genlist:
>    >
>    > genlist/list _down & _up callbacks should return when the flag is on.
>    >
>    >
>    >
>    > I have attached the patches. Would anybody review the patch?
>    >
>    >
>    >
>    > Thanks.
>    >
>    > -----------------------------------------------------
>    >
>    > Seokjae Jeong
>    > Senior Engineer
>    >
>    > SAMSUNG ELECTRONICS CO., LTD.
>    >
>    > -----------------------------------------------------
>    >
>    >
>    >
>    >
>    --
>    Gustavo Sverzut Barbieri
>    http://profusion.mobi embedded systems
>    --------------------------------------
>    MSN: barbi...@gmail.com
>    Skype: gsbarbieri
>    Mobile: +55 (19) 9225-2202
> 
> 
>    _________________________________________________________________
> 
>          [card_samsungKor2.gif]
> 
>         [card_5.gif]
> 
> 
>    JEONG, SEOKJAE, Ph.D.
>    Senior Engineer
>    Mobile S/W Platform Lab.
>    Digital Media & Communications R&D Center
> 
>    Digital Media & Communications Business
> 
>    SAMSUNG ELECTRONICS CO., LTD.
>    Dong Suwon P.O.BOX 105,
>    416, Maetan-3dong, Yeongtong-gu,
> 
>    Suwon-si, Gyeonggi-do, Korea 443-724
>    TEL: +82-31-279-7078
>    FAX: +82-31-279-5515
>    Anycall: +82-10-3327-1972
>    E-mail: seok.j.je...@samsung.com
>    _________________________________________________________________
> 
> 
> 
>    [cid:QKNMBDIFBEI0@namo.co.kr]
> 
> References
> 
>    1. mailto:seok...@gmail.com


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to