mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-07 07:17:43 -07:00
FIX:fix click failure on Mac
jira: STUDIO-10962 Change-Id: I051cccbc8633e737a305784fadb69bc76f823065 (cherry picked from commit c90948dc730a6f9e696983c64fb71451ae9ecc44)
This commit is contained in:
parent
399d2eb216
commit
989b3995fa
1 changed files with 10 additions and 0 deletions
|
|
@ -784,6 +784,16 @@ bool AmsMapingPopup::is_match_material(std::string material)
|
|||
void AmsMapingPopup::on_left_down(wxMouseEvent &evt)
|
||||
{
|
||||
auto pos = ClientToScreen(evt.GetPosition());
|
||||
{//deal m_reset_btn
|
||||
auto& item = m_reset_btn;
|
||||
auto p_rect = item->ClientToScreen(wxPoint(0, 0));
|
||||
auto left = item->GetSize();
|
||||
if (pos.x > p_rect.x && pos.y > p_rect.y && pos.x < (p_rect.x + item->GetSize().x) && pos.y < (p_rect.y + item->GetSize().y)) {
|
||||
reset_ams_info();
|
||||
evt.StopPropagation();
|
||||
return;
|
||||
}
|
||||
}
|
||||
for (MappingItem *item : m_mapping_item_list) {
|
||||
auto p_rect = item->ClientToScreen(wxPoint(0, 0));
|
||||
auto left = item->GetSize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue