Permalink
Browse files
Nyan cat stops when he reaches the end of the touchbar.
- Loading branch information...
Showing
with
1 addition
and
3 deletions.
-
+1
−3
touchbar_nyancat/NyanCatCanvas.swift
|
|
@@ -48,9 +48,7 @@ class NyanCatCanvas: NSImageView { |
|
|
}
|
|
|
|
|
|
public func moveNyancat() {
|
|
|
- if (xPosition >= 0) {
|
|
|
- xPosition = -680
|
|
|
- } else {
|
|
|
+ if (xPosition < 0) {
|
|
|
xPosition += 1
|
|
|
}
|
|
|
}
|
|
|
|
0 comments on commit
b0c8508