knob: make gesture's precision proportionnal to widget's size

This commit is contained in:
jean-emmanuel 2016-11-18 09:49:02 +01:00
parent 493c93d9ca
commit 1a287eb385
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.11.3
- widgets
- knob: gesture's precision is proportionnal to the widget's size
## 0.11.2
- touch

View file

@ -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 {