mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-03-17 23:13:56 +01: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 {
|
||||
bounds.contains(strokeBounds)
|
||||
bounds.contains(strokeBounds) || bounds.intersects(strokeBounds)
|
||||
}
|
||||
|
||||
func begin(at point: CGPoint) {
|
||||
|
||||
Reference in New Issue
Block a user