1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

PaintBrush: Most tools still care about mousemoves outside layer

This allows you to do things like start a line outside the layer,
or spray a little outside but still partly hitting the layer. :^)
This commit is contained in:
Andreas Kling 2020-05-13 13:50:35 +02:00
parent 96d03546ef
commit 24f9406784
6 changed files with 9 additions and 27 deletions

View file

@ -90,9 +90,6 @@ void RectangleTool::on_mousemove(Layer&, GUI::MouseEvent& event, GUI::MouseEvent
if (m_drawing_button == GUI::MouseButton::None)
return;
if (!m_editor->rect().contains(event.position()))
return;
m_rectangle_end_position = event.position();
m_editor->update();
}