Mercurial > hg > webaudioevaluationtool
changeset 1518:74126eeefb53
APE: Multiple Screen Drag and Drop interface. Still needs more work for right screens
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 10 Sep 2015 12:43:47 +0100 |
parents | cfd25c48bc77 |
children | ae6c77e78494 |
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 {