mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-21 09:33:01 +08:00
fix: disable check scroll for flutter mac
This commit is contained in:
parent
1b7950fc42
commit
4ce4830274
@ -1530,7 +1530,7 @@ pub async fn handle_test_delay(t: TestDelay, peer: &mut Stream) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(all(target_os = "macos", not(feature = "flutter")))]
|
||||||
fn check_scroll_on_mac(mask: i32, x: i32, y: i32) -> bool {
|
fn check_scroll_on_mac(mask: i32, x: i32, y: i32) -> bool {
|
||||||
if mask & 3 != 3 {
|
if mask & 3 != 3 {
|
||||||
return false;
|
return false;
|
||||||
@ -1593,7 +1593,7 @@ pub fn send_mouse(
|
|||||||
if command {
|
if command {
|
||||||
mouse_event.modifiers.push(ControlKey::Meta.into());
|
mouse_event.modifiers.push(ControlKey::Meta.into());
|
||||||
}
|
}
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(all(target_os = "macos", not(feature = "flutter")))]
|
||||||
if check_scroll_on_mac(mask, x, y) {
|
if check_scroll_on_mac(mask, x, y) {
|
||||||
mouse_event.modifiers.push(ControlKey::Scroll.into());
|
mouse_event.modifiers.push(ControlKey::Scroll.into());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user