summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-03 12:50:25 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-03 22:29:42 +0200
commit779a7015fd25099759bf00cee345a03e0e40e08f (patch)
tree6320cd9aeb0897259fbc75db7601fddaecc9222b /vcl/source
parent874a1bf1748dd0246a00e2a3cd4724f852e71a52 (diff)
Note that for COMMAND_WHEEL_ZOOM the delta value is ignored
Change-Id: Ia8b8e98ff48a54fd1c295df439e8fd57aeb3fa25
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/winproc.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 0ec4f8337c61..d86342d09c36 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2594,10 +2594,13 @@ long ImplWindowFrameProc( Window* pWindow, SalFrame* /*pFrame*/,
break;
case SALEVENT_EXTERNALZOOM:
{
- // Manually tuned to get a pleasing effect at least on my
- // device... Would be better to actually achieve the
- // requested scale factor of course.
- const int ZOOM_FACTOR = 300;
+ // At least in Writer (see SwView::HandleWheelCommands()
+ // in sw/source/ui/uiview/viewport.cxx) the delta value in the event is cheerfully
+ // ignored and only its sign matters, zooming always is one "step" per event.
+ // Thus this factor has no meaning. Will have to fix this probably by adding a new
+ // CommandWheelData mode to actually multiply the current zoom level with a value
+ // specified.
+ const int ZOOM_FACTOR = 100;
ZoomEvent* pZoomEvent = (ZoomEvent*) pEvent;
SalWheelMouseEvent aSalWheelMouseEvent;