Fixed behaviour when not dragging.
Reverted 6c4fbb2 to fix #1.