equal
deleted
inserted
replaced
93 var button_centerX = (offset.left) + (this.button.progress.width()/2); |
93 var button_centerX = (offset.left) + (this.button.progress.width()/2); |
94 var button_centerY = (offset.top) + (this.button.progress.height()/2); |
94 var button_centerY = (offset.top) + (this.button.progress.height()/2); |
95 var radians = Math.atan2(x - button_centerX, y - button_centerY); |
95 var radians = Math.atan2(x - button_centerX, y - button_centerY); |
96 var degree = Math.round( (radians * (180 / Math.PI) * -1) + 180 ); |
96 var degree = Math.round( (radians * (180 / Math.PI) * -1) + 180 ); |
97 return degree; |
97 return degree; |
98 //return (degree <= max ? degree : max); |
|
99 }, |
98 }, |
100 |
99 |
101 play: function(){ |
100 play: function(){ |
102 this.audio.play(); |
101 this.audio.play(); |
103 this.button.play.addClass('playing'); |
102 this.button.play.addClass('playing'); |