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