| 291 | } |
| 292 | |
| 293 | void ScrollBar::scrollWheel(Event *e) |
| 294 | { |
| 295 | // FIXME: Scrolling amount should match wheel amount |
| 296 | // Should wheel orientation match as well? Who has horizontal scrolls?? |
| 297 | int wheelDelta = e->forms().MouseInfo.WheelVertical + e->forms().MouseInfo.WheelHorizontal; |
| 298 | if (wheelDelta > 0) |
| 299 | { |
| 300 | scrollPrev(); |
| 301 | } |
| 302 | else if (wheelDelta < 0) |
| 303 | { |
| 304 | scrollNext(); |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | }; // namespace OpenApoc |
no outgoing calls
no test coverage detected