Should use smooth scrolling events to scroll smoothly when possible
Submitted by Eric Piel
Link to original bug (#710426)
Description
Currently, the VTE window scrolls by 4 lines on each scroll event. When using input device such as a touchpad, it gives a very rough scrolling (especially compared to other gnome applications). VTE should make use of the GDK_SMOOTH_SCROLL event and gdk_event_get_scroll_deltas() to retrieve the precise scrolling information and provide a smooth scrolling. Most probably, it is preferable to still ensure that scrolling is always done by a round number of lines (or in other words, that the top of the screen corresponds to the top of a line).
How to reproduce
- Use a computer with a touchpad (or an input tablet)
- Open gnome-terminal
- Ensure the buffer has more lines than the size of the window. Ex: for i in $(seq 100); do echo $i; done
- scroll up/down with the touchpad Current behaviour: the window scrolls up/down 4 by 4 lines Expected behaviour: the window scrolls up/down smootly 1 line at a time, at the same average speed as the current behaviour.
Resolution: RESOLVED FIXED