From 18eb50955bd2fffd970e96175420aad63910a253 Mon Sep 17 00:00:00 2001 From: imairi Date: Mon, 2 Jan 2017 14:16:21 +0900 Subject: [PATCH] fix available mac os version --- touchbar_nyancat/NyanCatCanvas.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/touchbar_nyancat/NyanCatCanvas.swift b/touchbar_nyancat/NyanCatCanvas.swift index d590ba7..455fd3f 100644 --- a/touchbar_nyancat/NyanCatCanvas.swift +++ b/touchbar_nyancat/NyanCatCanvas.swift @@ -68,7 +68,7 @@ class NyanCatCanvas: NSImageView { override func touchesMoved(with event: NSEvent) { - if #available(OSX 10.12.1, *) { + if #available(OSX 10.12.2, *) { let current = event.allTouches().first?.location(in: self).x ?? 0 let previous = event.allTouches().first?.previousLocation(in: self).x ?? 0