Fix T70252: Reverting to macOS 10.11 compatible API.
authorStefan Werner <stefan.werner@tangent-animation.com>
Wed, 2 Oct 2019 08:22:26 +0000 (10:22 +0200)
committerStefan Werner <stefan.werner@tangent-animation.com>
Wed, 2 Oct 2019 08:22:26 +0000 (10:22 +0200)
intern/ghost/intern/GHOST_WindowCocoa.mm

index e46e589fea4e72f467866cf2e8562cd446d7af59..6087df978fa6a8f7432052e52f17ad7d7599994d 100644 (file)
@@ -388,7 +388,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa,
   [m_window setAcceptsMouseMovedEvents:YES];
 
   NSView *contentview = [m_window contentView];
-  [contentview setAllowedTouchTypes:(NSTouchTypeMaskDirect | NSTouchTypeMaskIndirect)];
+  [contentview setAcceptsTouchEvents:YES];
 
   [m_window registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType,
                                                               NSStringPboardType,