Archived
1
0

be aware of screen size

This commit is contained in:
Jeff Becker
2016-04-30 15:13:52 -04:00
parent 5df2ecac0c
commit 157d1f8cb9
2 changed files with 6 additions and 5 deletions

View File

@@ -280,10 +280,11 @@ function init(prefix) {
e.addEventListener("dragend", function(ev) {
var x = originalX + ev.clientX - mouseDownX;
var y = originalY + ev.clientY - mouseDownY;
console.log(x,y);
//rpl.moveTo(x, y);
//originalX = x;
//originalY = y;
x -= window.screenLeft;
y -= window.screenTop;
rpl.moveTo(x, y);
originalX = x;
originalY = y;
}, false);
}