mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
8077f46fdf
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. |
||
---|---|---|
.. | ||
images | ||
variables | ||
atom.less | ||
atomicons.woff | ||
babelrc.json | ||
cursors.less | ||
docks.less | ||
index.html | ||
index.js | ||
jasmine.less | ||
linux.less | ||
normalize.less | ||
octicons-2.1.2.woff | ||
octicons.less | ||
octicons.woff | ||
panels.less | ||
panes.less | ||
scaffolding.less | ||
syntax.less | ||
text-editor.less | ||
title-bar.less | ||
workspace-view.less |