1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-11 13:15:35 +03:00

Mouse events fix

This commit is contained in:
Viktor Sukochev 2017-08-31 18:18:55 +07:00
parent 325a04d140
commit 3f21d37a8c

View File

@ -173,7 +173,7 @@ import Foundation
private func handleInput(event: NSEvent, handler: (_ touches: [MTouchEvent]) -> Void ) {
// Touch pad
guard event.subtype == .touch else {
if event.subtype == .touch {
let touchPoints = event.touches(matching: .any, in: self).map { touch -> MTouchEvent in
let location = touch.location(in: self)
let id = Int(bitPattern: Unmanaged.passUnretained(touch).toOpaque())