Clean up condition for readability

This commit is contained in:
Daniel Imms
2018-02-01 17:28:08 -08:00
parent 43adf0ef70
commit cab097c09c
+3 -3
View File
@@ -266,9 +266,9 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
return false;
}
return (start[1] < coords[1] && end[1] > coords[1]) ||
(start[1] === end[1] && start[1] === coords[1] && coords[0] > start[0] && coords[0] < end[0]) ||
(start[1] < end[1] && end[1] === coords[1] && coords[0] < end[0]);
return (coords[1] > start[1] && coords[1] < end[1]) ||
(start[1] === end[1] && coords[1] === start[1] && coords[0] > start[0] && coords[0] < end[0]) ||
(start[1] < end[1] && coords[1] === end[1] && coords[0] < end[0]);
}
/**