internal void ApplyOffset(Vector2 offset, bool windowMove)
{
offset = ((this.dir != EdgeDir.Left) && (this.dir != EdgeDir.Right)) ? new Vector2(offset.y, offset.x) : offset;
if (windowMove)
{
this.pos += offset.x;
}
else
{
this.pos = offset.x + this.startDragPos;
}
this.start += offset.y;
this.end += offset.y;
}