Commit Graph

140 Commits

Author SHA1 Message Date
Jaehwan Kim a091b950f3 The animator should be removed when mouse is down and the _smart_event_mouse_move function occurs.
SVN revision: 67318
2012-01-19 07:11:41 +00:00
Jaehwan Kim 2c50b2b7f7 I forgot this.
SVN revision: 67237
2012-01-16 05:36:29 +00:00
Jaehwan Kim ec4a9c6b9c If the region_show or bring_in occurs during dragging the scroller and not happened mouse up event, it is scrolled to that position.
But if the dragging is continued, it returns current position. So I changed it is scrolled at that position. 
And if mouse move event occurs while bring_in animation, the animation is stoped.


SVN revision: 67236
2012-01-16 04:48:52 +00:00
Jaehwan Kim 94a1a87560 In els_pan, there is no signal "pan_changed".
So _smart_pan_pan_changed_hook never be called.


SVN revision: 66891
2012-01-05 04:57:21 +00:00
ChunEon Park 5b6e858db2 elementary/scroller - unsigned char -> Eina_Bool
SVN revision: 66628
2011-12-29 11:53:28 +00:00
Michael BOUCHAUD 95a91ebfca elementary: Fixed the problem of scroller (photocam, gengrid, ... maybe other). When we are dragging or animating the scroller, we can do call some edje_object_part_drag_value_set who generate an edje signal 'drag,set'. But, we don't want catch it at this times!
SVN revision: 66339
2011-12-19 18:17:45 +00:00
Daniel Juyung Seo 09e55906d2 elm els_scroller: Cancel wanted region set when scrollto animator is
enabled. Check scrollto.x.animator and scrollto.y.animator
when _elm_smart_scroller_wanted_region_set is called.


SVN revision: 66126
2011-12-13 01:20:21 +00:00
Daniel Juyung Seo 1dbbe5553c elm: Reverted wrong commits. This was committed by mistake :( So
shame...;


SVN revision: 66123
2011-12-12 23:57:57 +00:00
Daniel Juyung Seo feda46e2f1 elm toolbar/naviframe: Added more documentation about elm_object and
elm_object_item common APIs support. This needs to be done for other
widgets which support elm_object/elm_object_item.


SVN revision: 66122
2011-12-12 23:53:26 +00:00
Daniel Juyung Seo 497ffe3218 elm els_scroller.c: Initialize variables.
SVN revision: 65789
2011-12-02 01:16:54 +00:00
Cedric BAIL da302ac7c7 elementary: propagate drag,set signal to.
patch by Mikael Sans <sans.mikael@gmail.com>


SVN revision: 65776
2011-12-01 11:00:55 +00:00
Jaehwan Kim d689aa55b2 elementary/scroller - change the behavior when the scroller is bouncing.
When the scroller is dragged repeatedly in a short time, it is accelerated.
If it reaches the edge of the content, the bouncing is started.
Sometimes because of the acceleration, the content cannot be shown in a moment.
In order to avoid that situation, the bounce animation have to be fixed 
according the amount of acceleration.


SVN revision: 64642
2011-11-02 12:07:47 +00:00
Jaehwan Kim 051d092c71 From: Jaehwan Kim <jaehwan.kim.neo@gmail.com>
At first, try to execute elementary_test and drag down the list for bounce.
Then as soon as release the mouse, click the list continuously and fast.
The list will not be clicked because it cannot be clicked during the bounce
animation. The bounce animation time is fixed and it is reset again, when
the mouse is down and up. In the result, if we click it continuously, we can
not choose the list item. (During animation, list can not be clicked).
I changed the function "_smart_bounce_x_animator" and "_smart_bounce_
y_animator". I fixed the bounce time will be changed by remaining distance.



SVN revision: 64407
2011-10-26 06:30:07 +00:00
Jaehwan Kim 12711f6f63 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
I found a problem in els_scroller. When the scroller is resized, it shows the location of 
the coordination which was saved into wanted_coordination. If you don't use the page,
it is no matter. But if you use the page function, the animation of the scroller is operated
by _smart_scrollto_x_animator, not by _smart_momentum_animator. 
In _smart_scrollto_x_animator, therer isn't _update_wanted_coordinates. So the value of
wanted_coordination doesn't update. I think _update_wanted_coordinates have to be added in
_smart_scrollto_x_animator and _smart_scrollto_y_animator.
Please check the attached patch file.



SVN revision: 64406
2011-10-26 05:51:59 +00:00
Hyoyoung Chang fad1e70386 From: Hyoyoung Chang <hyoyoung.chang@samsung.com>
Subject: [E-devel] [patch] elm_scroller - add gravity functionality

I made a gravity features for stopping scroller.
Elm_scroller's fixed when child's growing lower.
However if scroller's child is growing upper,  
the elm_scroller always moving and waving to upper direction.
Because elm_scroller sets internal pan to keep current virtual position.
Gravity functions introduce to stopping scroller.



SVN revision: 64073
2011-10-14 10:57:31 +00:00
Jaehwan Kim 2fd30a5890 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] ELM_THUMBSCROLL_SENSITIVITY_FRICTION

I talked with you about 4.0, magic number.
I want to change the part that the length of mouse dragging multiply 4.0
to _elm_config->thumbscroll_sensitivity_friction.
4.0 is nice. But some device may want to change the value. It is a kind
of sensitivity. So I added the config "ELM_THUMBSCROLL_SENESITIVITY
_FRICTION". And I change the value mean. If the value is high, it is
more sensitive. The range of the value is from 0.1 to 1.0. It cannot be 0.0.
4.0 changed to 0.25. 
Please check this patch.



SVN revision: 64051
2011-10-13 12:07:39 +00:00
ChunEon Park d646474aed elementary/scroller - patched by jae.hwan.kim@samsung.com
fix two bugs - use elm_smart_scroller_edje_object_get in case of edje object

fix conditional statement when parameter is 0 in
elm_smart_scroller_page_show,

elm_smart_scroller_page_bring_in



SVN revision: 64010
2011-10-12 07:04:15 +00:00
Mike McCormack beafec3884 elementary: Improve include file modularity
Move stuff out of elm_priv.h

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63900
2011-10-07 05:56:07 +00:00
Jaehwan Kim ece95a4115 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] els_scroller - bouncing doesn't work in
specific case

I found the bouncing of the scroller doesn't work in specific case.
When the scroller is scrolled but the animation doesn't occur,
sd->down.dy is not changed. Then in elm_smart_scroller_child_pos_set,
it's possible not to pass the below conditional sentence even if it
have to has the bounce.

if (((y < miny) && (0 <= sd->down.dy)) ||
((y > (my + miny)) && (0 >= sd->down.dy)))

So I reset the value sd->down.dx and sd->down.dy to 0 when mouse is up.
Please check patch file.



SVN revision: 63797
2011-10-04 07:33:28 +00:00
Daniel Juyung Seo b8068daee9 elm els_scroller.c: Always check and delete hold_animator on mouse up.
SVN revision: 63539
2011-09-22 17:40:44 +00:00
Daniel Juyung Seo 45372847f9 elm gengrid: Added page feature to gengrid. Patch by Benjamin Drucker
<benjamin.t.drucker@alum.mit.edu>. Thanks a lot!

On Wed, Aug 31, 2011 at 1:52 PM, Benjamin Drucker
<benjamin.t.drucker@alum.mit.edu> wrote:
> Earlier this month, there was a svn commit
> (http://trac.enlightenment.org/e/changeset/62496) which added a few
> page-related APIs to the elm scroller.  These should probably also be
> added to gengrid, genlist and maybe even grid and list.  Right now,
> though, I need them for gengrid.  So I propose this patch, based
> entirely on the change that went in before.  I've built it and I'm
> using these new gengrid APIs in my code now.

On Fri, Sep 9, 2011 at 4:45 PM, Benjamin Drucker
<benjamin.t.drucker@alum.mit.edu> wrote:
> Slowly but surely....
>
> This version of the gengrid page APIs patch has the following changes:
> 1. fixed spacing issues
> 2. add const where needed
> 3. submitted a gengrid longpressed change in a separate patch
>
> I really want to try to squeak this in the upcoming release if at all
> possible. If I have an extra space in some file, I promise I'll not do
> it again for the next patch!
>
> Thanks!!
> Ben


SVN revision: 63403
2011-09-15 02:16:37 +00:00
Daniel Juyung Seo c11701e85a elm els_scroller.c: Fixed formatting.
Fixed indentation. Fixed spacing.


SVN revision: 63084
2011-09-02 04:52:18 +00:00
Daniel Juyung Seo a817b43d33 elm: Removed all trailing whitespaces.
Why they are added even I'm removing them arbitrarily.


SVN revision: 63083
2011-09-02 04:09:17 +00:00
Carsten Haitzler ae7a70bc77 handle case where child obj resizes WHILe bouncing/scrolling around
AND we are at or beyond a limit.



SVN revision: 62945
2011-08-29 12:48:00 +00:00
Jaehwan Kim 976085a86e From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] signal "scroll,anim,stop"  in els_scroller

fix the bug which the signal "scroll,anim,stop" is not called sometimes.



SVN revision: 62789
2011-08-25 08:46:52 +00:00
김재환 00a1ea50ad From: 김재환 <jae.hwan.kim@samsung.com>
I added 4 APIs for the page function of the scroller.
   
      Those are,
      
         EAPI void elm_scroller_current_page_get(Evas_Object *obj, int
*h_pagenumber,
   int *v_pagenumber));
   
      (Get scroll current page number.)
      
         EAPI void elm_scroller_last_page_get(Evas_Object *obj, int
*h_pagenumber,
   int *v_pagenumber);
   
      (Get scroll last page number.)
      
         EAPI void elm_scroller_page_show(Evas_Object *obj, int
h_pagenumber, int
   v_pagenumber);
   
      (Show a specific virtual region within the scroller content
object by page
   number without animation.)
   
      EAPI void elm_scroller_page_bring_in(Evas_Object *obj, int
h_pagenumber, int
   v_pagenumber);
   
      (Show a specific virtual region within the scroller content
object by page
   number with animation.)
   


SVN revision: 62496
2011-08-16 10:52:01 +00:00
Daniel Juyung Seo 4879118510 elm: Removed trailing whitespaces before I work on.
SVN revision: 61933
2011-08-01 06:46:43 +00:00
Jaehwan Kim 159888e059 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: Re: [E-devel] [Patch] The bounce problem in the scroller.

The scroller has a problem when it is scrolled consistently in the end of the edge.
It has an acceleration. If the scrolling occur again before the animation end,?
the scroll-animation (momentum animation) be faster. When it is in the end of the edge,
it does, too. So the content of the scroller disappear because of the acceleration.
The scroller don't need to has the acceleration in the end of edge.

The below is the problem.
http://www.youtube.com/watch?v=Qg7BZrm9EnA

And the below is the scroller which be patched.
http://www.youtube.com/watch?v=lHT6G9WoNSs



SVN revision: 61800
2011-07-27 09:24:42 +00:00
Jaehwan Kim 4ebfb567bd From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] The scroll animation doesn't work when the
scroll-action is started from the outside of a viewport.

In scroller, if the scroll-action is started from the outside of a
viewport,
the momentum animation does not work because of the bounce-effect.

Please see the below video.
http://www.youtube.com/watch?v=xNvLSxWjrDE
 
The below video is the scroller after applying my patch.
http://www.youtube.com/watch?v=hM3o1kxC674



SVN revision: 61799
2011-07-27 09:21:54 +00:00
Rafael Antognolli e42e50e434 elm/genlist - Fix bounce option getter.
Try to get the bounce option from the internal els_scroller, and also
add checks on the els_scroller api to see if the arguments were given.



SVN revision: 61592
2011-07-22 17:15:33 +00:00
Jaehwan Kim 43954a560d From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel]  [patch] els_scroller simple bug

els_scroller in elementary has a simple bug.

In the function "_smart_scrollto_x", it makes the animator
'sd->scrollto.x.animator', if the animator does not exist. But 
"_smart_anim_start" before ecore_animator_add can make 2 animators. 
If the function which be called by _smart_anim_start call
"elm_scroller_region_bring_in", "_smart_scrollto_x" be called again and make 
the animator. After the function which be called by _smart_snim_start ends,
the next line will make the animtor again. Despite the code checks the
animator, it can make 2 animators. So we have to change the order of the code
like patch file.



SVN revision: 60507
2011-06-20 07:20:31 +00:00
Daniel Juyung Seo c197a99832 Elm scroller: Fixed 'may be used uninitialized' warnings.
SVN revision: 60231
2011-06-11 16:43:20 +00:00
Daniel Juyung Seo e6dbf02e0e Elementary: Removed trailing whitespaces from c,h,am,ac,in.
I think there is no more whitespaces in elementary. So from now on
please check if your code is whitespace-free when you commit it. If so,
no one will suffer from removing whitespaces and merge conflict.


SVN revision: 60223
2011-06-11 07:36:37 +00:00
Carsten Haitzler 28ba600756 less comments and cleaner code with commented out plotting debug
SVN revision: 60189
2011-06-10 12:16:20 +00:00
Carsten Haitzler 9648eab6c0 and no needfor old overrides for setting fx/fy
SVN revision: 60186
2011-06-10 10:17:45 +00:00
Carsten Haitzler b01978ac93 forgot to make window of smoothing configurable. fix minor macro
oopsie too.



SVN revision: 60165
2011-06-10 05:07:21 +00:00
Carsten Haitzler 5b2f1b7956 scroller smoothing stuff.
SVN revision: 60126
2011-06-09 10:14:16 +00:00
Carsten Haitzler 31536211cd mark magic number as such
SVN revision: 60073
2011-06-08 06:58:51 +00:00
Carsten Haitzler 59c203323a aaargh. thumbscroll border friction not quite right.. 0 is valid. :)
also... 0 are valid values of these config vars when getting props



SVN revision: 60072
2011-06-08 06:54:02 +00:00
Jaehwan Kim a356004af9 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] els_scroller bug patch.

I and Seoz found some problem about
_elm_smart_scroller_wanted_region_set in els_scroller.
While genlist items are appended, momentum animation in scroller
cannot operate.
It's why _elm_smart_Scroller_wanted_region_set is called continually.
It's the problem which Seoz told you. and I fixed this problem.
Please check the attached patch file.

If you want to check the problem.
Set the "Thumb scroll friction" in elementary_config to 2~3.
Change the file "test_genlist.c" in elementary/src/bin like below.



SVN revision: 59105
2011-05-02 09:22:50 +00:00
Tom Hacohen 25e4d80217 Elementary els_scroller: Merge region_show and region_bring_in codes.
They are 99.99% the same, no reason why not to merge them.

SVN revision: 59077
2011-05-01 09:40:30 +00:00
Tom Hacohen f93bfb1222 Elementary els_scroller: Fixed not moving when position is shown.
The scroller shouldn't move when the position requested is already
shown. There were two problems:
1. It was assumed that the cw/ch == requsted w/h which is not true, for
example with entry, we sometimes request to show the cursor which way
smaller.
2. We want to check the bounds *after* making sure we are not showing
"dead space" i.e places that the child does not populate.

SVN revision: 59076
2011-05-01 09:40:28 +00:00
Sangho Park fc0054e855 els_scroller: add apis for enable/disable default wheel control
SVN revision: 58984
2011-04-28 02:34:00 +00:00
Daniel Juyung Seo fa81dba991 Elementary els_scroller.c: Refactored code.
Changed unsigned char to Eina_Bool. Changed 0 to EINA_FALSE for Eina_Bool type variables. Removed unnecessary blank line. Added braces in if statements.


SVN revision: 58964
2011-04-27 15:31:31 +00:00
Tom Hacohen 4ea6131744 Elementary smart-scroller: Fixed scroller "jumping" in some cases.
In some cases, for example resizing the GenGrid test or just using
ephoto, the scroller would jump to the right before going to it's
proper direction. We should check if the position is below minimum
after we reduce the position, and not instead.

SVN revision: 58383
2011-04-06 07:51:26 +00:00
ChunEon Park 5176a3f867 elementary / entry, list, scroller, fileselector_button, config, photocam, map, pan, bg, store, priv, pager, conform, box, clock, flipselector
fixed indentation, removed white spaces.



SVN revision: 58267
2011-04-01 19:08:56 +00:00
ChunEon Park 71d2f4b067 elementary / cursor, scroller, icon - removed white spaces
SVN revision: 58248
2011-04-01 11:08:31 +00:00
Jae Hwan Kim 9e506fc581 From: Jae Hwan Kim <jae.hwan.kim@samsung.com>
If the scroller is stopped and set the freeze push while bounce
animation is running, it will stop bouncing in a moment. Even if the scroller
is set the freeze pop again, the scroller don't finish the bouncing. I think
that it should finish the bouncing when it is set the freeze pop.



SVN revision: 58063
2011-03-24 07:34:23 +00:00
ChunEon Park 3d570dd8d3 elementary/scrollers - added minor exceptios.
SVN revision: 57702
2011-03-12 06:36:21 +00:00
ChunEon Park c3e3ebb3ac elementary/els_scroller - added one minor exception
SVN revision: 57687
2011-03-11 09:57:10 +00:00