diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm index e556bf38bb35..d44411fb56f2 100644 --- a/vcl/osx/salframeview.mm +++ b/vcl/osx/salframeview.mm @@ -765,11 +765,19 @@ private: if( bNewSeries ) mfMagnifyDeltaSum = 0.0; +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 + mfMagnifyDeltaSum += [pEvent deltaZ]; +#else mfMagnifyDeltaSum += [pEvent magnification]; +#endif - mfLastMagnifyTime = [pEvent timestamp]; - // TODO: change to 0.1 when COMMAND_WHEEL_ZOOM handlers allow finer zooming control - static const float fMagnifyFactor = 0.25*500; + mfLastMagnifyTime = [pEvent timestamp]; +// TODO: change to 0.1 when COMMAND_WHEEL_ZOOM handlers allow finer zooming control +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 + static const float fMagnifyFactor = 0.25; +#else + static const float fMagnifyFactor = 0.25*500; // steps are 500 times smaller for -magnification +#endif static const float fMinMagnifyStep = 15.0 / fMagnifyFactor; if( fabs(mfMagnifyDeltaSum) <= fMinMagnifyStep ) return;