Ticket #15812 (closed defect: fixed)
mouse-wheel coordinates are wrong
|Reported by:||LtJax||Owned by:||vadz|
Mouse wheel coordinates are wrong when the window returns a non-zero
GetClientAreaOrigin() because it is subtracted twice. For example, this happens when the window has a toolbar.
In wxWindowMSW::HandleMouseWheel, it is first subtracted in wxTopLevelWindowBase::DoScreenToClient which is called through wxWindowBase::ScreenToClient.
It is then again subtracted in wxWindowMSW::InitMouseEvent.
I'll attach a small patch that fixes the problem for me.