mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-07 04:17:00 +00:00
Fix: scaling issue using set_pivot_point
`scale_center` is deprecrated, new windows gets 0.5, 1 as pivot point to scale around, which doesn't mix well with scaling_center.
This commit is contained in:
@@ -74,7 +74,7 @@ move = (meta_window, x, y, onComplete) => {
|
||||
let scale = 1
|
||||
if (x >= global.screen_width - margin || x <= margin - frame.width)
|
||||
scale = 0.95
|
||||
actor.scale_center_y = frame.height/2
|
||||
actor.set_pivot_point(0.5, 0.5);
|
||||
Tweener.addTween(actor, {x: x - x_offset
|
||||
, y: y - y_offset
|
||||
, time: 0.25
|
||||
|
||||
Reference in New Issue
Block a user