more
This commit is contained in:
parent
4665c0eb4e
commit
4305692727
@ -255,6 +255,8 @@ function init(prefix) {
|
|||||||
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;
|
||||||
|
y -= $(e).height();
|
||||||
|
x -= $(e).width();
|
||||||
$(e).offset({
|
$(e).offset({
|
||||||
top: y,
|
top: y,
|
||||||
left: x
|
left: x
|
||||||
|
Reference in New Issue
Block a user