Skip to content

Commit

Permalink
bar.js: fixed dragging in Firefox when cursor leaves the browser window
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 22, 2015
1 parent 7868005 commit 292e174
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tracy/assets/Bar/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@
options = options || {};

var onmousemove = function(e) {
if (!e.buttons) {
return onmouseup(e);
}
if (!started) {
if (options.draggedClass) {
elem.classList.add(options.draggedClass);
Expand Down

0 comments on commit 292e174

Please sign in to comment.