PixelPaint: Inherit from AbstractZoomPanWidget

This commit is contained in:
Mustafa Quraish
2022-01-08 04:44:19 -05:00
committed by Andreas Kling
parent b21d128075
commit 7974fee800
Notes: sideshowbarker 2024-07-17 20:55:32 +09:00
12 changed files with 69 additions and 244 deletions

View File

@@ -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());