mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Animate preview from pointer location
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user