mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 19:46:53 +00:00
Use easeOutQuad curve when bringing windows into view
If an animation needs to wait for a window covering it to move it should start out fast.
This commit is contained in:
@@ -432,7 +432,7 @@ function ensure_viewport(space, meta_window, force) {
|
||||
if (meta_window.get_compositor_private().is_scaled()) {
|
||||
// easeInQuad: delta/2(t/duration)^2 + start
|
||||
delay = Math.pow(2*(stack_margin - minimumMargin)/frame.width, .5)*0.25/2;
|
||||
transition = 'easeInOutQuad';
|
||||
transition = 'easeOutQuad';
|
||||
debug('delay', delay)
|
||||
}
|
||||
space.moving = meta_window;
|
||||
|
||||
Reference in New Issue
Block a user