1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

10.5 SDK fix.

This commit is contained in:
jules 2013-04-03 17:22:36 +01:00
parent 66a6275e76
commit c322d6243e

View file

@ -628,10 +628,13 @@ public:
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];
if (invScale != 0.0f)
handleMagnifyGesture (0, getMousePos (ev, view), getMouseTime (ev), 1.0f / invScale);
#endif
(void) ev;
}
void sendMouseEvent (NSEvent* ev)