Skip to content

Commit

Permalink
Inverted the zoom when using scroll wheel
Browse files Browse the repository at this point in the history
solvs bug 3264
  • Loading branch information
goglepox committed Aug 28, 2012
1 parent 370d6bd commit fb26685
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -481,7 +481,7 @@ public void handleEvent(Event event) {
switch(event.type) {
case SWT.MouseWheel:
currentMagnification = magnification;
magnification = (float) (currentMagnification * (1-event.count*.01));
magnification = (float) (currentMagnification * (1-event.count*-.01));
if(magnification<=0) magnification=0.001f;
getRenderer().setZoom(magnification);
resizeControl();
Expand Down

0 comments on commit fb26685

Please sign in to comment.