Permalink
Browse files

Nyan cat stops when he reaches the end of the touchbar.

  • Loading branch information...
1 parent 11d3018 commit b0c850872767a59660cf020e162043093a6c4fcd @tyler-sommer tyler-sommer committed Feb 10, 2017
Showing with 1 addition and 3 deletions.
  1. +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

Please sign in to comment.