mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
PixelPaint: Inherit from AbstractZoomPanWidget
This commit is contained in:
parent
b21d128075
commit
7974fee800
12 changed files with 69 additions and 244 deletions
|
@ -171,7 +171,7 @@ void GuideTool::on_context_menu(Layer*, GUI::ContextMenuEvent& event)
|
|||
editor()));
|
||||
}
|
||||
|
||||
auto image_position = editor()->editor_position_to_image_position(event.position());
|
||||
auto image_position = editor()->frame_to_content_position(event.position());
|
||||
m_context_menu_guide = closest_guide({ (int)image_position.x(), (int)image_position.y() });
|
||||
if (m_context_menu_guide)
|
||||
m_context_menu->popup(event.screen_position());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue