InvokeAI/invokeai/frontend
psychedelicious 7ca613d41c feat(ui): snap cursor pos when drawing rects
- Rects snap to stage edge when within a threshold (10 screen pixels)
- When mouse leaves stage, set last mousedown pos to null, preventing nonfunctional rect outlines

Partially addresses #6306.

There's a technical challenge to fully address the issue - mouse event are not fired when the mouse is outside the stage. While we could draw the rect even if the mouse leaves, we cannot update the rect's dimensions on mouse move, or complete the drawing on mouse up.

To fully address the issue, we'd need to a way to forward window events back to the stage, or at least handle window events. We can explore this later.
2024-05-04 12:03:28 -04:00
..
cli feat(config): add CLI arg to specify config file 2024-03-20 15:05:25 +11:00
install feat(installer): remove updater 2024-03-26 14:48:29 +11:00
web feat(ui): snap cursor pos when drawing rects 2024-05-04 12:03:28 -04:00
__init__.py Run python black 2023-07-28 09:46:44 -04:00