Mercurial > hg > webaudioevaluationtool
changeset 295:2d64fec077a5 Dev_main
APE: Multiple Screen Drag and Drop interface. Still needs more work for right screens
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 10 Sep 2015 12:43:47 +0100 |
parents | df7263170715 |
children | d3d691e33fec |
files | ape.js |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ape.js Thu Sep 10 12:32:56 2015 +0100 +++ b/ape.js Thu Sep 10 12:43:47 2015 +0100 @@ -507,6 +507,10 @@ var w = slider.style.width; w = Number(w.substr(0,w.length-2)); var x = ev.x; + if (x < 0) + { + x += -1.0*ev.view.screenLeft; + } if (x >= marginSize && x < w+marginSize) { this.style.left = (x)+'px'; } else {