projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8c7c0c
)
Revert "Removed additional acceleration routine."
author
Jaehwan Kim
<jae.hwan.kim@samsung.com>
Wed, 29 Aug 2012 02:57:24 +0000
(11:57 +0900)
committer
Jaehwan Kim
<jae.hwan.kim@samsung.com>
Wed, 29 Aug 2012 05:24:18 +0000
(14:24 +0900)
This reverts commit
0bbd9871a36a5a80a2a98b92b5683ec1d9bda11a
.
Change-Id: I5705b5b374a55f256b9b1166ae72f9e8918cafee
src/lib/els_scroller.c
patch
|
blob
|
history
diff --git
a/src/lib/els_scroller.c
b/src/lib/els_scroller.c
index
dd6c4d0
..
ffa0fa0
100644
(file)
--- a/
src/lib/els_scroller.c
+++ b/
src/lib/els_scroller.c
@@
-1923,6
+1923,19
@@
_smart_event_mouse_up(void *data, Evas *e, Evas_Object *obj __UNUSED__, void *ev
#ifdef SCROLLDBG
printf("------ %i %i\n", ev->canvas.x, ev->canvas.y);
#endif
+ for (i = 0; i < 60; i++)
+ {
+ dt = t - sd->down.history[i].timestamp;
+ if (dt > 0.2) break;
+#ifdef SCROLLDBG
+ printf("H: %i %i @ %1.3f\n",
+ sd->down.history[i].x,
+ sd->down.history[i].y, dt);
+#endif
+ at += dt;
+ ax += sd->down.history[i].x;
+ ay += sd->down.history[i].y;
+ }
ax /= (i + 1);
ay /= (i + 1);
at /= (i + 1);