+
+void ScintillaWX::DoMouseWheel(int rotation, int delta, int linesPerAction) {
+ int topLineNew = topLine;
+ int lines;
+
+ wheelRotation += rotation;
+ lines = wheelRotation / delta;
+ wheelRotation -= lines * delta;
+ if (lines != 0) {
+ lines *= linesPerAction;
+ topLineNew -= lines;
+ ScrollTo(topLineNew);
+ }
+}
+
+