summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-06 11:55:42 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-06 11:55:54 +0200
commitffd6c9ce112675c4821ef7f8ac644dd40c54a1e9 (patch)
tree94dcbc354230724bb5c9e0dc9db58dbd66d00f7c /src/ui
parenta39b528d1ee9789c98aca15ef617d84a86d113b8 (diff)
Cleanup
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 6ce5e02a..1ab16b4f 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -1256,8 +1256,6 @@ iBool processEvent_Widget(iWidget *d, const SDL_Event *ev) {
1256 if (ev->motion.y > bottomLimit) { 1256 if (ev->motion.y > bottomLimit) {
1257 speed = -(ev->motion.y - bottomLimit) / (float) hoverScrollLimit; 1257 speed = -(ev->motion.y - bottomLimit) / (float) hoverScrollLimit;
1258 } 1258 }
1259 printf("my:%d bottomLimit:%d => %f (%d)\n", ev->motion.y, bottomLimit, speed
1260 ,isOverflowScrollPossible_Widget_(d, speed)); fflush(stdout);
1261 } 1259 }
1262 const int dir = speed > 0 ? 1 : -1; 1260 const int dir = speed > 0 ? 1 : -1;
1263 if (speed != 0.0f && isOverflowScrollPossible_Widget_(d, dir)) { 1261 if (speed != 0.0f && isOverflowScrollPossible_Widget_(d, dir)) {