Files
atom/static
Antonio Scandurra 8077f46fdf Programmatically detect when mouse approaches the edge of a dock
Previously, we would assign dock elements a minimum width/height of 2
pixels so that we could detect when the mouse approached the edge of a
hidden dock in order to show the chevron buttons. This, however, was
causing confusion for users, who expected that extra space to be
clickable in order to scroll editors located in the center dock.

With this commit we will instead register a global `mousemove` event on
the window right when attaching the workspace element to the DOM (the
event handler is debounced, so this shouldn't have any performance
consequence). Then, when mouse moves, we will programmatically detect
when it is approaching to the edge of a dock and show the chevron button
accordingly. This allows us to remove the `min-width` property from the
dock container element, which eliminates the confusing behavior
described above.
2018-01-12 17:12:55 +01:00
..
2017-06-01 22:51:46 +09:00
2017-06-01 20:57:57 +09:00
2017-06-01 14:22:46 +09:00
2017-05-19 11:07:38 +02:00
2017-11-01 13:59:02 +01:00
2016-06-29 13:15:20 +09:00
2016-11-02 22:03:22 +09:00
2017-06-01 22:51:46 +09:00
2016-09-21 15:20:03 +09:00
2017-06-01 20:57:57 +09:00
2016-06-29 13:15:20 +09:00
2016-09-07 15:38:00 +09:00