feat: add intersection check on canvas view bounds

This commit is contained in:
dscyrescotti
2024-05-15 01:58:46 +07:00
parent 8ee010b77a
commit 42eb3e661e

View File

@@ -72,7 +72,7 @@ final class Stroke: @unchecked Sendable {
}
func isVisible(in bounds: CGRect) -> Bool {
bounds.contains(strokeBounds)
bounds.contains(strokeBounds) || bounds.intersects(strokeBounds)
}
func begin(at point: CGPoint) {