Mercurial > hg > webaudioevaluationtool
changeset 133:2e8500c4df02
Fixed small slider bug causing non-full screen testing to have sliders appear further to the left after dropping
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Wed, 27 May 2015 19:00:20 +0100 |
parents | 76d6207784a6 |
children | 93fa802a9318 d769f1623203 |
files | ape.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ape.js Wed May 27 18:53:34 2015 +0100 +++ b/ape.js Wed May 27 19:00:20 2015 +0100 @@ -495,7 +495,7 @@ var marginSize = Number(slider.attributes['marginsize'].value); var w = slider.style.width; w = Number(w.substr(0,w.length-2)); - var x = ev.x - ev.view.screenX; + var x = ev.x; if (x >= marginSize && x < w+marginSize) { this.style.left = (x)+'px'; } else {