Fix dragging not working on Windows