summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-31 07:26:39 +0200
committerNoel Grandin <noel@peralex.com>2014-10-31 07:28:06 +0200
commit72ce1368b504804529bbcdc14484e9abb2ffa398 (patch)
tree36381873f229041592c11ec8564edc60e0fc3ec3 /vcl/osx
parent7eb519e92b4b50546f222e8d0219b21af8e6ea18 (diff)
convert COMMAND_WHEEL constants to an enum
Change-Id: I413d821a984ab556bd19c52704c04de6d828f699
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salframeview.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 74404365eb67..98f3dadf1d80 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -758,14 +758,14 @@ private:
mfMagnifyDeltaSum += [pEvent magnification];
mfLastMagnifyTime = [pEvent timestamp];
-// TODO: change to 0.1 when COMMAND_WHEEL_ZOOM handlers allow finer zooming control
+// TODO: change to 0.1 when CommandWheelMode::ZOOM handlers allow finer zooming control
static const float fMagnifyFactor = 0.25*500; // steps are 500 times smaller for -magnification
static const float fMinMagnifyStep = 15.0 / fMagnifyFactor;
if( fabs(mfMagnifyDeltaSum) <= fMinMagnifyStep )
return;
// adapt NSEvent-sensitivity to application expectations
- // TODO: rather make COMMAND_WHEEL_ZOOM handlers smarter
+ // TODO: rather make CommandWheelMode::ZOOM handlers smarter
const float fDeltaZ = mfMagnifyDeltaSum * fMagnifyFactor;
int nDeltaZ = FRound( fDeltaZ );
if( !nDeltaZ )