修改鼠标点击逻辑,点击选中区域内部时不再取消选中状态
This commit is contained in:
@@ -990,8 +990,8 @@ namespace JoyD.Windows.CS
|
||||
{
|
||||
if (region.ImageRectangle.Contains(imagePoint))
|
||||
{
|
||||
// 选中或取消选中该区域
|
||||
_selectedRegionIndex = (_selectedRegionIndex == region.Index) ? -1 : region.Index;
|
||||
// 选中该区域(点击已选中区域不再取消选中)
|
||||
_selectedRegionIndex = region.Index;
|
||||
clickedOnRegion = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user