Try to move the "window" outside of the view.
  1. If element ends moving inside the view it "returns" back in its static place.
  2. If element is moved outside the view it is docked to the side of the window. Element.move(..., #attached-window)
  3. If element is moved far enough from the view it gets detached from the view - moving the view is not causing such element to move in sync with the view. Element.move(..., #detached-window)
Window #1
.
Window #2
.
Window #3
.