tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
690 stars 66 forks source link

Is there a way to prevent windows from being dragged after they've been dragged a certain distance? #77

Open MilesV64 opened 3 years ago

MilesV64 commented 3 years ago

For example for implementing a magnetic center of the screen for windows to snap to, similar how windows stop if you drag them slowly to the edges of the screen. When I set the screen as a response to the frame change event, the window either flickers or doesn't get changed at all.