Skip to content

Commit

Permalink
Merge pull request #31 from sigmate/sigmate-patch-1
Browse files Browse the repository at this point in the history
Add "enable" attr support for wheel events
  • Loading branch information
g200kg committed Nov 30, 2018
2 parents 8aa6195 + 3f4a3c9 commit e0de168
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webaudio-controls.js
Expand Up @@ -451,6 +451,8 @@ webaudio-knob{
this.sendEvent("input"),this.sendEvent("change");
}
wheel(e) {
if (!this.enable)
return;
let delta=(this.max-this.min)*0.01;
delta=e.deltaY>0?-delta:delta;
if(!e.shiftKey)
Expand Down

0 comments on commit e0de168

Please sign in to comment.