6
edits
mNo edit summary |
mNo edit summary |
||
| Line 13: | Line 13: | ||
Can I please recommend a completely different approach, 100% identical design to what "pointer acceleration" is: if the user scrolls at speed X, actual scroll is at speed X+a*X^lambda where lambda>1. | Can I please recommend a completely different approach, 100% identical design to what "pointer acceleration" is: if the user scrolls at speed X, actual scroll is at speed X+a*X^lambda where lambda>1. | ||
The implementation (for lambda=2) would be: | The implementation (for lambda=2) would be:<br> | ||
1. t = get the time between last scroll event and current scroll event;<br> | |||
1. t = get the time between last scroll event and current scroll event; | |||
2. scroll document by base_scroll + (1/t)*acceleration; | 2. scroll document by base_scroll + (1/t)*acceleration; | ||
This means acceleration kicks in every time user scrolls fast, not scrolls for some time. Nice, predictable, stable memoryless system. | This means acceleration kicks in every time user scrolls fast, not scrolls for some time. Nice, predictable, stable memoryless system. | ||
edits