# HG changeset patch # User Nicholas Jillings # Date 1448530777 0 # Node ID ffb7f1c1f97cbc3f3c479528f2f7dd659d8a2e01 # Parent f6a6b7fd40417bea175e779f2345103bf7fe8d73# Parent c660254104e370e646a27aec33a020ba38a0d95d Merge again.... diff -r c660254104e3 -r ffb7f1c1f97c ape.js --- 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';