Fix crash showing tooltip when mouse was on the edge between two tabs

This commit is contained in:
Shadowfacts 2021-03-06 15:47:27 -05:00
parent 32d87fbd9d
commit 219033476c
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ data class Rect(val left: Double, val top: Double, val width: Double, val height
}
operator fun contains(point: Point): Boolean {
return point.x in left..right && point.y in top..bottom
return point.x >= left && point.x < right && point.y >= top && point.y < bottom
}
}
}