Fix dragging around resized edges. Fixes #552