stevengharris / SplitView

A flexible way to split SwiftUI views with a draggable splitter
MIT License
146 stars 17 forks source link

Issue When Dragging a Splitter Outside the Parent Window on MacOS #5

Closed dleuck closed 1 year ago

dleuck commented 1 year ago

If you drag outside the window on MacOS the position of the cursor relative to the splitter is changed by the distance travelled outside the window. When you reenter the window your pointer is no longer over the splitter.

BTW - This is a great library. It is exactly what I needed.

stevengharris commented 1 year ago

Thanks very much for letting me know. I will check it out.

stevengharris commented 1 year ago

This should be fixed in https://github.com/stevengharris/SplitView/commit/b43b07b06aefc5a0daf574938e3b55a47390bcc4 and tagged as 3.1.3 so you can just update the package.

dleuck commented 1 year ago

Thank you! I was working on a PR, but you beat me to it. :-)

dleuck commented 1 year ago

Fixed cursor location issue after exiting and re-entering window.