Skip to content

Commit

Permalink
Make balance snap to center
Browse files Browse the repository at this point in the history
Fixes #28
  • Loading branch information
captbaritone committed Nov 16, 2014
1 parent 35335d7 commit 93d073b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions winamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ function Winamp () {
}

this.nodes.balance.oninput = function() {
if(Math.abs(this.value) < 25) {
this.value = 0;
}
self.setBalance(this.value);
}

Expand Down

0 comments on commit 93d073b

Please sign in to comment.