Archived
1
0
This commit is contained in:
Jeff Becker 2017-01-16 12:00:46 -05:00
parent 4665c0eb4e
commit 4305692727

View File

@ -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