mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-11-16 22:01:14 +01:00
feat: add intersection check on canvas view bounds
This commit is contained in:
1 parent
8ee010b77a
commit
42eb3e661e
1 file changed
+1
-1
@@ -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