Window bouncing oddly when maximased with floating top panel present

When maximasing window touches floating top panel it goes slightly beyond where it should be, then returning at its place. As a result, unpleasand bouncing effect occuring.

Here’s video:

imgur com/a/SiwW3nQ

Btw I’ve just updated to 6.1