+ int xPos = xOffset;
+ int pixels;
+
+ if (axis == wxMOUSE_WHEEL_HORIZONTAL) {
+ wheelHRotation += rotation * (columnsPerAction * vs.spaceWidth);
+ pixels = wheelHRotation / delta;
+ wheelHRotation -= pixels * delta;
+ if (pixels != 0) {
+ xPos += pixels;
+ PRectangle rcText = GetTextRectangle();
+ if (xPos > scrollWidth - rcText.Width()) {
+ xPos = scrollWidth - rcText.Width();
+ }
+ HorizontalScrollTo(xPos);
+ }
+ }
+ else if (ctrlDown) { // Zoom the fonts if Ctrl key down
+ if (rotation > 0) {