mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47: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:
parent
96d03546ef
commit
24f9406784
6 changed files with 9 additions and 27 deletions
|
@ -83,9 +83,6 @@ void SprayTool::paint_it()
|
|||
|
||||
void SprayTool::on_mousedown(Layer&, GUI::MouseEvent& event, GUI::MouseEvent&)
|
||||
{
|
||||
if (!m_editor->rect().contains(event.position()))
|
||||
return;
|
||||
|
||||
m_color = m_editor->color_for(event);
|
||||
m_last_pos = event.position();
|
||||
m_timer->start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue