summaryrefslogtreecommitdiff
path: root/gtk/gtkkineticscrolling.c
Commit message (Collapse)AuthorAgeFilesLines
* kineticscrolling: avoid stutter at tail of kinetic decelerationChristian Hergert2016-05-051-1/+4
| | | | | | | | | | | | When decelerating the kinetic scroll, we can get into a position where it looks like we are stuttering. This happens because the amount we move is so little that it takes multiple frames to make forward progress by one pixel. This prevents that by detecting when we have reached the slow stutter of the deceleration and simply stops the deceleration phase immediately. https://bugzilla.gnome.org/show_bug.cgi?id=765493
* kinetic scrolling: Fix compiler warningsMatthias Clasen2015-06-021-10/+10
| | | | Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
* gtk/gtkkineticscrolling.c: Include fallback-c89.cChun-wei Fan2014-06-061-1/+2
| | | | | ... as round() is being used, which is for C99 and later. fallback-c89.c includes math.h as well.
* gtk: Add kinetic scrolling helperLieven van der Heide2014-06-051-0/+215
GtkKineticScrolling implements the actual physics laws for friction and springs. When created, position/velocity/boundaries/constants are given, so at every gtk_kinetic_scrolling_tick() it returns the current position, and whether the system is in rest. https://bugzilla.gnome.org/show_bug.cgi?id=729608