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