Browse Source

10.5 SDK fix.

tags/2021-05-28
jules 12 years ago
parent
commit
c322d6243e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 3
- 0
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -628,10 +628,13 @@ public:
void redirectMagnify (NSEvent* ev) void redirectMagnify (NSEvent* ev)
{ {
#if defined (MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
const float invScale = 1.0f - [ev magnification]; const float invScale = 1.0f - [ev magnification];
if (invScale != 0.0f) if (invScale != 0.0f)
handleMagnifyGesture (0, getMousePos (ev, view), getMouseTime (ev), 1.0f / invScale); handleMagnifyGesture (0, getMousePos (ev, view), getMouseTime (ev), 1.0f / invScale);
#endif
(void) ev;
} }
void sendMouseEvent (NSEvent* ev) void sendMouseEvent (NSEvent* ev)


Loading…
Cancel
Save