pulsar/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
..
images Use loading octicon in command panel 2013-04-29 14:13:21 -07:00
variables 🎨 Rename "entity" to "type" 2017-06-01 22:51:46 +09:00
atom.less Use .icon class for atomicons 2017-06-01 20:57:57 +09:00
atomicons.woff Update refined icons 2017-06-01 14:22:46 +09:00
babelrc.json Revert "Upgrade to Babel 6 and apply fewer transformations when transpiling babel files" 2017-03-17 12:40:38 +01:00
cursors.less Use cursor:text on atom-text-editor elements 2017-05-05 09:29:30 +02:00
docks.less Programmatically detect when mouse approaches the edge of a dock 2018-01-12 17:12:55 +01:00
index.html Update CSP to allow using eval from JavaScript 2017-06-12 12:04:22 -04:00
index.js Fix lint errors 2017-05-19 11:07:38 +02:00
jasmine.less Preserve whitespace 2017-11-01 13:59:02 +01:00
linux.less 🔥 Remove -webkit prefixes 2016-06-29 13:15:20 +09:00
normalize.less Move Bootstrap to a separate package 2016-06-01 11:34:40 +09:00
octicons-2.1.2.woff Use Octicons 4.4 2016-11-02 22:03:22 +09:00
octicons.less 🎨 Rename "entity" to "type" 2017-06-01 22:51:46 +09:00
octicons.woff Replace Octicons 4.4.0 with a normalized version 2016-11-03 16:46:25 +09:00
panels.less Fix positioning of left dock toggle button when panel container has min-width 2017-04-12 11:39:39 -07:00
panes.less 🔥 Remove paddings 2016-09-21 15:20:03 +09:00
scaffolding.less Use .icon class for atomicons 2017-06-01 20:57:57 +09:00
syntax.less 🔥 Remove -webkit prefixes 2016-06-29 13:15:20 +09:00
text-editor.less Move highlight decorations outside of tiles 2017-08-29 11:44:07 +02:00
title-bar.less Only allow status-bar to be dragged 2017-02-21 22:26:46 +09:00
workspace-view.less Reset min-height 2016-09-07 15:38:00 +09:00