Merge pull request #14 from imairi/bugfix/available_os_version

fix available  mac os version
This commit is contained in:
Vatsaev Aslan 2017-02-09 00:11:37 +01:00 committed by GitHub
commit d4e23ae8e8

View file

@ -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