dgurkaynak / Penc

Trackpad-oriented window manager for macOS
https://deniz.co/penc/
MIT License
1.12k stars 25 forks source link

Dragging something "into" a screen edge behaves weirdly #33

Open ahti opened 3 years ago

ahti commented 3 years ago

When picking up a window, edge or corner, dragging it against a screen edge, and then continuing to drag in the direction of the edge, the dragged thing will move on past the edge and off screen.

dgurkaynak commented 3 years ago

Yeah, you're right. If the mouse cursor is not moving into a direction for some reason (edge of the screen), the selected window shouldn't move too. I'm relying on mouseDragged(with:) event, and I think we can check whether the cursor position is on the edge of any screen or not 👍