changeset 968:be4abf039d42

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 16852cf211eb
children 917676cbdcc8
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 {