diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-13 13:50:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-13 13:50:35 +0200 |
commit | 24f9406784b4db6b7d4b4f5e9100afdecd44057b (patch) | |
tree | 4c31d72ad73a3100fa445ccb00f0f105d0c383c5 /Applications/PaintBrush/EllipseTool.cpp | |
parent | 96d03546efb79f33b0bb4bd507825ad847724b02 (diff) | |
download | serenity-24f9406784b4db6b7d4b4f5e9100afdecd44057b.zip |
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. :^)
Diffstat (limited to 'Applications/PaintBrush/EllipseTool.cpp')
-rw-r--r-- | Applications/PaintBrush/EllipseTool.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Applications/PaintBrush/EllipseTool.cpp b/Applications/PaintBrush/EllipseTool.cpp index 00c90700fd..8169207491 100644 --- a/Applications/PaintBrush/EllipseTool.cpp +++ b/Applications/PaintBrush/EllipseTool.cpp @@ -79,14 +79,11 @@ void EllipseTool::on_mouseup(Layer& layer, GUI::MouseEvent& event, GUI::MouseEve } } -void EllipseTool::on_mousemove(Layer& layer, GUI::MouseEvent& event, GUI::MouseEvent&) +void EllipseTool::on_mousemove(Layer&, GUI::MouseEvent& event, GUI::MouseEvent&) { if (m_drawing_button == GUI::MouseButton::None) return; - if (!layer.rect().contains(event.position())) - return; - m_ellipse_end_position = event.position(); m_editor->update(); } |