Merge pull request #2 from yukiny0811/develop

Bug fix
This commit is contained in:
Yuki Kuwashima 2022-09-17 20:40:24 +09:00 committed by GitHub
commit 042d655fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -11,12 +11,6 @@ struct InputNode: View {
let idString: (nodeID: String, inputName: String)
var body: some View {
HStack {
// Rectangle()
// .fill(.yellow)
// .frame(width: 20, height: 20, alignment: .leading)
// .onHover{ hovering in
// EasyNodeManager.shared.selectedInputID = self.idString
// }
TouchEventView(view: NSTouchEventView(frame: NSRect(x: 0, y: 0, width: 20, height: 20), idString: self.idString))
.frame(width: 20, height: 20, alignment: .leading)
.background(Color.yellow)

View File

@ -49,4 +49,10 @@ class NSTouchEventView: NSView {
EasyNodeManager.shared.selectedInputID = nil
print("exited")
}
deinit {
self.trackingAreas.forEach { ta in
self.removeTrackingArea(ta)
}
}
}