Skip to content

Commit 769ae42

Browse files
authored
fix(ui): clear stale paging hit-test paths (#1183)
Thank you for fixing
1 parent 0cd71a6 commit 769ae42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sources/SquirrelView.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ final class SquirrelView: NSView {
287287
if let sublayers = pagingLayer.sublayers, !sublayers.isEmpty {
288288
self.layer?.addSublayer(pagingLayer)
289289
}
290+
self.downPath = downPath?.copy()
291+
self.upPath = upPath?.copy()
290292
let flipTransform = CGAffineTransform(scaleX: 1, y: -1).translatedBy(x: 0, y: -self.bounds.height)
291293
if let downPath {
292294
panelPath.addPath(downPath, transform: flipTransform)
293-
self.downPath = downPath.copy()
294295
}
295296
if let upPath {
296297
panelPath.addPath(upPath, transform: flipTransform)
297-
self.upPath = upPath.copy()
298298
}
299299

300300
shape.path = panelPath

0 commit comments

Comments
 (0)