Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Added support for double clicking the project panel to close it #825

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/brackets.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,12 @@ define(function (require, exports, module) {
var startingSidebarPosition = sidebarWidth;

$("#sidebar-resizer").css("left", sidebarWidth - 1);

$("#sidebar-resizer").on("dblclick", function (e) {
CommandManager.execute(Commands.VIEW_HIDE_SIDEBAR);
});

$("#sidebar-resizer").on("mousedown.sidebar", function (e) {

// check to see if we're currently in hidden mode
if (ProjectManager.getSidebarState() === ProjectManager.SIDEBAR_CLOSED) {
// when we click, start modifying the sidebar size and then
Expand Down Expand Up @@ -307,7 +311,6 @@ define(function (require, exports, module) {
$("#sidebar-resizer").on("mouseup.sidebar", function (e) {
$(".main-view").off("mousemove.sidebar");
startingSidebarPosition = $sidebar.width();
console.log(startingSidebarPosition);
});

}
Expand Down