Animate preview from pointer location

This commit is contained in:
Gonçalo Silva
2020-12-15 03:22:06 +00:00
committed by GitHub
parent 76c3d91c5b
commit 841d49ebbf

View File

@@ -694,6 +694,9 @@ Main.uiGroup.add_actor(preview);
function showPreview(loc, _x, _y, _w, _h) {
Tweener.removeTweens(preview);
let [x, y, _] = global.get_pointer();
preview.x = x;
preview.y = y;
preview.visible = true;
preview.loc = loc;
Tweener.addTween(preview, {