knob: make gesture's precision proportionnal to widget's size
This commit is contained in:
parent
493c93d9ca
commit
1a287eb385
2 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 0.11.3
|
||||
|
||||
- widgets
|
||||
- knob: gesture's precision is proportionnal to the widget's size
|
||||
|
||||
## 0.11.2
|
||||
|
||||
- touch
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ Knob.prototype.dragHandle = function(e, data, traversing) {
|
|||
|
||||
if (!(traversing || this.widgetData.snap)) {
|
||||
|
||||
this.percent = -data.speedY + this.percent
|
||||
this.percent = -100*data.speedY/this.height + this.percent
|
||||
|
||||
} else {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue