This is cool to see such important widgets improving. Stef Le 26/11/15 17:28, Stephan Eggermont a écrit :
Today we've had a design discussion on slack on autoscrolling with Morphic. The idea is to start scrolling up or down when drag-holding over a table. A similar approach should hold for scrolling panes.
It started with me describing a working but not so nice approach starting stepping on #mouseEnterDragging:, checking the global hand position and button state in each #step:, stopping the stepping on #mouseLeaveDragging: or #mouseUp:.
Thierry noticed the #newMouseFocus: taking of FastTable on #mouseEnterDragging: causes problems when dragging from one table to itself without leaving the table bounds.
Henrik then wrote the code for FastTable, removing the mouse focus taking by adapting #handleMouseMove: The first results are in the latest version of FastTable on estebanlm/FastTable. The top and bottom parts of the table will now start scrolling the table rows when drag-holding over them.
Further possible improvements: - expand/contract tree triangles when holding over them, taking priority over the start of autoscrolling; - adapt scrolling speed depending on distance from border - check starting delay, repeat rate and smoothness of the scrolling
Stephan