mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 03:46:53 +00:00
Finally anchor the scaled position _properly_
Set the y pivot based on y_offset so we can specify the visible position of the scaled window.
This commit is contained in:
@@ -96,6 +96,8 @@ move = (meta_window, x, y, onComplete, onStart, delay) => {
|
||||
scale = scaled_height/frame.height;
|
||||
// Center the actor properly
|
||||
y += scaled_y_offset;
|
||||
let pivot = actor.pivot_point;
|
||||
actor.set_pivot_point(pivot.x, y_offset/buffer.height);
|
||||
}
|
||||
Tweener.addTween(actor, {x: x - x_offset
|
||||
, y: y - y_offset
|
||||
|
||||
Reference in New Issue
Block a user