mirror of
https://github.com/avatsaev/touchbar_nyancat
synced 2024-11-25 04:30:19 +00:00
Nyan cat stops when he reaches the end of the touchbar.
This commit is contained in:
parent
11d301834f
commit
b0c8508727
1 changed files with 1 additions and 3 deletions
|
@ -48,9 +48,7 @@ class NyanCatCanvas: NSImageView {
|
|||
}
|
||||
|
||||
public func moveNyancat() {
|
||||
if (xPosition >= 0) {
|
||||
xPosition = -680
|
||||
} else {
|
||||
if (xPosition < 0) {
|
||||
xPosition += 1
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue