Fix refresh problems when scrolling with mousewheel in wxUniv/MSW

Use native scrolling under MSW, just as we already did under X11,
instead of our own version which doesn't work correctly when scrolling
using the mouse wheel.

See https://github.com/wxWidgets/wxWidgets/pull/2525
This commit is contained in:
Vadim Zeitlin
2021-09-23 16:24:20 +02:00
parent 5ecf2e05a5
commit 3b3169fa15

View File

@@ -1061,7 +1061,7 @@ void wxWindow::ScrollWindow(int dx, int dy, const wxRect *rect)
{ {
// use native scrolling when available and do it in generic way // use native scrolling when available and do it in generic way
// otherwise: // otherwise:
#ifdef __WXX11__ #if defined(__WXX11__) || defined(__WINDOWS__)
wxWindowNative::ScrollWindow(dx, dy, rect); wxWindowNative::ScrollWindow(dx, dy, rect);