mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-04-23 17:18:42 +02:00
feat: add intersection check on canvas view bounds
This commit is contained in:
@@ -72,7 +72,7 @@ final class Stroke: @unchecked Sendable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func isVisible(in bounds: CGRect) -> Bool {
|
func isVisible(in bounds: CGRect) -> Bool {
|
||||||
bounds.contains(strokeBounds)
|
bounds.contains(strokeBounds) || bounds.intersects(strokeBounds)
|
||||||
}
|
}
|
||||||
|
|
||||||
func begin(at point: CGPoint) {
|
func begin(at point: CGPoint) {
|
||||||
|
|||||||
Reference in New Issue
Block a user