1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-11-11 01:42:35 +03:00

Group 'shouldCheck' methods fixed

This commit is contained in:
Viktor Sukochev 2017-02-28 14:28:38 +07:00
parent 769858dea2
commit 130c540fdc

View File

@ -60,7 +60,7 @@ open class Group: Node {
}
override func shouldCheckForPressed() -> Bool {
var shouldCheck = false
var shouldCheck = super.shouldCheckForPressed()
contents.forEach { node in
shouldCheck = shouldCheck || node.shouldCheckForPressed()
}
@ -69,7 +69,7 @@ open class Group: Node {
}
override func shouldCheckForMoved() -> Bool {
var shouldCheck = false
var shouldCheck = super.shouldCheckForMoved()
contents.forEach { node in
shouldCheck = shouldCheck || node.shouldCheckForMoved()
}
@ -78,7 +78,7 @@ open class Group: Node {
}
override func shouldCheckForReleased() -> Bool {
var shouldCheck = false
var shouldCheck = super.shouldCheckForReleased()
contents.forEach { node in
shouldCheck = shouldCheck || node.shouldCheckForReleased()
}