fixed broken scrolling since wxWidgets 3.1