more
This commit is contained in:
parent
b42a2ae138
commit
e2d7846d45
@ -253,8 +253,8 @@ function init(prefix) {
|
||||
|
||||
$(rpl.elem).on("mousemove", function(ev) {
|
||||
if ($dragging) {
|
||||
var x = ev.pageX, // - $(this).width() / 2,
|
||||
y = ev.pageY; //- $(this).height() / 2;
|
||||
var x = ev.pageX - $(this).width() / 2,
|
||||
y = ev.pageY - $(this).height() / 2;
|
||||
$dragging.offset({
|
||||
top: y,
|
||||
left: x
|
||||
|
Reference in New Issue
Block a user