remove some errors on mac

This commit is contained in:
rustdesk
2022-12-26 11:25:55 +08:00
parent 0e6e27b0ae
commit 6d95a66de3
3 changed files with 16 additions and 10 deletions

View File

@@ -23,15 +23,18 @@ fn main() {
enigo.mouse_click(MouseButton::Left);
thread::sleep(wait_time);
enigo.mouse_scroll_x(2);
thread::sleep(wait_time);
#[cfg(not(target_os = "macos"))]
{
enigo.mouse_scroll_x(2);
thread::sleep(wait_time);
enigo.mouse_scroll_x(-2);
thread::sleep(wait_time);
enigo.mouse_scroll_x(-2);
thread::sleep(wait_time);
enigo.mouse_scroll_y(2);
thread::sleep(wait_time);
enigo.mouse_scroll_y(2);
thread::sleep(wait_time);
enigo.mouse_scroll_y(-2);
thread::sleep(wait_time);
enigo.mouse_scroll_y(-2);
thread::sleep(wait_time);
}
}