Archived
1
0

use stack overflow example

This commit is contained in:
Jeff
2016-05-03 15:04:38 -04:00
parent ae45d3e516
commit 521c135498
2 changed files with 5 additions and 3 deletions

View File

@@ -387,9 +387,11 @@ function init(prefix) {
$(rpl.elem).on("mousemove", function(ev) {
if ($dragging) {
var x = ev.pageX - $(this).width() / 2,
y = ev.pageY - $(this).height() / 2;
$dragging.offset({
top: ev.pageY,
left: ev.pageX
top: x,
left: y
});
}
});