Change PiP stash to be based on velocity rather than position.

Also only allow stashing if user starts dragging from that edge.

Bug: 165793553
Test: Stash PIP via flinging
Change-Id: Icfd6d8d580cfb96b148f7712d0aedfcee1f30b2d
2 files changed