mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The embedding was only handling vertical scroll events from the OS; this adds horizontal as well. Fixes https://github.com/flutter/flutter/issues/60835
22 lines
560 B
C++
22 lines
560 B
C++
#include "flutter/shell/platform/windows/testing/mock_win32_window.h"
|
|
|
|
namespace flutter {
|
|
namespace testing {
|
|
|
|
MockWin32Window::MockWin32Window() : Win32Window(){};
|
|
|
|
MockWin32Window::~MockWin32Window() = default;
|
|
|
|
UINT MockWin32Window::GetDpi() {
|
|
return GetCurrentDPI();
|
|
}
|
|
|
|
void MockWin32Window::InjectWindowMessage(UINT const message,
|
|
WPARAM const wparam,
|
|
LPARAM const lparam) {
|
|
HandleMessage(message, wparam, lparam);
|
|
}
|
|
|
|
} // namespace testing
|
|
} // namespace flutter
|