mirror of
https://github.com/storytold/craft-libs.git
synced 2026-10-31 15:49:54 +00:00
AppKit reports a native window's new place as soon as a move is commanded, but measures the pointer events it sends against where the window server had the window, which can be a move behind. Placing the window from those events made it overshoot and step back while the cursor moved smoothly. On macOS the window now goes to NSEvent::mouseLocation, flipped against the primary screen's height and divided by egui's zoom factor, less the pressed point; drop targets are hit at the same point. Other platforms keep placing the window from the frame's pointer move. The cursor source is a DesktopCursor the test harness fixes. NativeHost can tell the cursor (tells_cursor) and measure a window's pointer events against its place some frames back (stale), through window_pointer.