gui: make kinetic scrolling more natural

Speeding up scrolling after releasing is distracting, get rid of it.
Instead reduce friction to its previous value.

Change-Id: I5c99cc71b631747697e967bd75669aa3d908c637
This commit is contained in:
that
2015-02-06 00:23:05 +01:00
parent 0a3a98f892
commit ae4b12eaef
+2 -2
View File
@@ -27,9 +27,9 @@ extern "C" {
#include "objects.hpp"
#include "../data.hpp"
const int SCROLLING_SPEED_DECREMENT = 12; // friction
const int SCROLLING_SPEED_DECREMENT = 6; // friction
const int SCROLLING_FLOOR = 10; // minimum pixels for scrolling to start or stop
const int SCROLLING_MULTIPLIER = 2; // initial speed of kinetic scrolling
const int SCROLLING_MULTIPLIER = 1; // initial speed of kinetic scrolling
const float SCROLLING_SPEED_LIMIT = 2.5; // maximum number of items to scroll per update
GUIScrollList::GUIScrollList(xml_node<>* node) : GUIObject(node)