mirror of
https://github.com/avatsaev/touchbar_nyancat
synced 2024-11-10 05:44:13 +00:00
Merge pull request #14 from imairi/bugfix/available_os_version
fix available mac os version
This commit is contained in:
commit
d4e23ae8e8
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class NyanCatCanvas: NSImageView {
|
||||||
|
|
||||||
|
|
||||||
override func touchesMoved(with event: NSEvent) {
|
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 current = event.allTouches().first?.location(in: self).x ?? 0
|
||||||
let previous = event.allTouches().first?.previousLocation(in: self).x ?? 0
|
let previous = event.allTouches().first?.previousLocation(in: self).x ?? 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue