Draw and clear link cells

This commit is contained in:
Daniel Imms
2018-03-08 07:00:37 -08:00
parent f456b14b3f
commit 021f8c1ba0
4 changed files with 39 additions and 9 deletions
+3 -1
View File
@@ -59,7 +59,9 @@ export class MouseZoneManager implements IMouseZoneManager {
// Iterate through zones and clear them out if they're within the range
for (let i = 0; i < this._zones.length; i++) {
const zone = this._zones[i];
if (zone.y1 > start && zone.y1 <= end + 1) {
if ((zone.y1 > start && zone.y1 <= end + 1) ||
(zone.y2 > start && zone.y2 <= end + 1) ||
(zone.y1 < start && zone.y2 > end + 1)) {
if (this._currentZone && this._currentZone === zone) {
this._currentZone.leaveCallback();
this._currentZone = null;