This commit is contained in:
Bill 2021-06-12 00:41:17 -04:00
parent 4b85e85626
commit 557c773ad9

View File

@ -2508,9 +2508,8 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
}
}
}
else
{
if(type === MouseEventType.MOUSE_UP)
else if(type === MouseEventType.MOUSE_UP)
{
if(this._activeRoomIsDragged)
{
@ -2543,9 +2542,8 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
}
}
}
else
{
if(type === MouseEventType.MOUSE_MOVE)
else if(type === MouseEventType.MOUSE_MOVE)
{
if(this._activeRoomIsDragged)
{
@ -2572,9 +2570,8 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
}
}
}
else
{
if((type === MouseEventType.MOUSE_CLICK) || (type === MouseEventType.DOUBLE_CLICK))
else if((type === MouseEventType.MOUSE_CLICK) || (type === MouseEventType.DOUBLE_CLICK))
{
this._activeRoomIsDragged = false;
@ -2585,9 +2582,6 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
return true;
}
}
}
}
}
return false;
}