Skip to content

Commit

Permalink
bar: is draggable only using logo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 16, 2017
1 parent a45cd0e commit f70ace6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Tracy/assets/Bar/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,14 @@
this.elem = document.getElementById(this.id);

draggable(this.elem, {
handles: [this.elem],
handles: this.elem.querySelectorAll('li:first-child'),
draggedClass: 'tracy-dragged'
});

this.elem.addEventListener('mousedown', function(e) {
e.preventDefault();
});

this.initTabs(this.elem);
this.restorePosition();
};
Expand Down

0 comments on commit f70ace6

Please sign in to comment.