mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +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
Notes:
sideshowbarker
2024-07-19 06:40:48 +09:00
Author: https://github.com/awesomekling
Commit: 24f9406784
6 changed files with 9 additions and 27 deletions
|
@ -84,9 +84,6 @@ void LineTool::on_mousemove(Layer&, GUI::MouseEvent& event, GUI::MouseEvent&)
|
|||
if (m_drawing_button == GUI::MouseButton::None)
|
||||
return;
|
||||
|
||||
if (!m_editor->rect().contains(event.position()))
|
||||
return;
|
||||
|
||||
if (!m_constrain_angle) {
|
||||
m_line_end_position = event.position();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue