Mercurial > hg > webaudioevaluationtool
changeset 1464:ffb7f1c1f97c
Merge again....
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 26 Nov 2015 09:39:37 +0000 |
parents | f6a6b7fd4041 (diff) c660254104e3 (current diff) |
children | a5e28606a50e |
files | ape.js core.js test_create/test_create.html |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ape.js Wed Nov 25 09:27:05 2015 +0000 +++ b/ape.js Thu Nov 26 09:39:37 2015 +0000 @@ -514,10 +514,14 @@ var marginSize = Number(slider.attributes['marginsize'].value); var w = slider.style.width; w = Number(w.substr(0,w.length-2)); - var x = ev.clientX; - - //x += Math.abs(window.screenX); - x = x % window.outerWidth; + var x + if (navigator.platform.substr(0,3) == "Win") + { + x = ev.screenX; + x -= Math.abs(window.screenX); + x = x % window.outerWidth; + } else + x = ev.clientX; if (x >= marginSize && x < w+marginSize) { this.style.left = (x)+'px';