windows: Fix scrolling bug (#12431)

Closes #12369 



https://github.com/zed-industries/zed/assets/14981363/14df820e-9be3-4b89-882b-a083ea42d59e



Release Notes:

- N/A
This commit is contained in:
张小白
2024-06-13 10:48:20 -07:00
committed by GitHub
parent 3c0310273b
commit 22dc88ed3d
2 changed files with 68 additions and 29 deletions
@@ -45,6 +45,7 @@ pub struct WindowsWindowState {
pub click_state: ClickState,
pub system_settings: WindowsSystemSettings,
pub current_cursor: HCURSOR,
pub nc_button_pressed: Option<u32>,
pub display: WindowsDisplay,
fullscreen: Option<StyleAndBounds>,
@@ -82,6 +83,7 @@ impl WindowsWindowState {
let input_handler = None;
let click_state = ClickState::new();
let system_settings = WindowsSystemSettings::new();
let nc_button_pressed = None;
let fullscreen = None;
Self {
@@ -95,6 +97,7 @@ impl WindowsWindowState {
click_state,
system_settings,
current_cursor,
nc_button_pressed,
display,
fullscreen,
hwnd,