mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
PixelPaint: Inherit from AbstractZoomPanWidget
This commit is contained in:
committed by
Andreas Kling
parent
b21d128075
commit
7974fee800
Notes:
sideshowbarker
2024-07-17 20:55:32 +09:00
Author: https://github.com/mustafaquraish Commit: https://github.com/SerenityOS/serenity/commit/7974fee8007 Pull-request: https://github.com/SerenityOS/serenity/pull/11719 Reviewed-by: https://github.com/TobyAsE ✅ Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/kleinesfilmroellchen Reviewed-by: https://github.com/sppmacd
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user