mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Merge pull request #43 from goncalossilva/patch-1
Animate preview from pointer location
This commit is contained in:
@@ -719,6 +719,11 @@ var preview = new St.BoxLayout({
|
|||||||
Main.uiGroup.add_actor(preview);
|
Main.uiGroup.add_actor(preview);
|
||||||
|
|
||||||
function showPreview(loc, _x, _y, _w, _h) {
|
function showPreview(loc, _x, _y, _w, _h) {
|
||||||
|
if (Tweener.getTweenCount(preview) == 0) {
|
||||||
|
let [x, y, _] = global.get_pointer();
|
||||||
|
preview.x = x;
|
||||||
|
preview.y = y;
|
||||||
|
}
|
||||||
Tweener.removeTweens(preview);
|
Tweener.removeTweens(preview);
|
||||||
preview.visible = true;
|
preview.visible = true;
|
||||||
preview.loc = loc;
|
preview.loc = loc;
|
||||||
|
|||||||
Reference in New Issue
Block a user