mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-11 12:14:53 +08:00
Allow selecting multiple adjacent zones even when they slightly overlap (#4974)
This commit is contained in:
parent
5f0e8d3d8e
commit
39b0401c55
@ -208,8 +208,8 @@ ZoneSet::ZonesFromPoint(POINT pt) noexcept
|
|||||||
{
|
{
|
||||||
auto rectI = m_zones[capturedZones[i]]->GetZoneRect();
|
auto rectI = m_zones[capturedZones[i]]->GetZoneRect();
|
||||||
auto rectJ = m_zones[capturedZones[j]]->GetZoneRect();
|
auto rectJ = m_zones[capturedZones[j]]->GetZoneRect();
|
||||||
if (max(rectI.top, rectJ.top) < min(rectI.bottom, rectJ.bottom) &&
|
if (max(rectI.top, rectJ.top) + SENSITIVITY_RADIUS < min(rectI.bottom, rectJ.bottom) &&
|
||||||
max(rectI.left, rectJ.left) < min(rectI.right, rectJ.right))
|
max(rectI.left, rectJ.left) + SENSITIVITY_RADIUS < min(rectI.right, rectJ.right))
|
||||||
{
|
{
|
||||||
overlap = true;
|
overlap = true;
|
||||||
i = capturedZones.size() - 1;
|
i = capturedZones.size() - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user