Fix a bug in miniview window dragging