Merge pull request #5124 from bwoebi/patch-1

Fix sciter build on MacOS
This commit is contained in:
RustDesk 2023-07-26 10:13:53 +08:00 committed by GitHub
commit f72eed064a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2025,13 +2025,6 @@ pub fn send_pointer_device_event(
if command {
evt.modifiers.push(ControlKey::Meta.into());
}
#[cfg(all(target_os = "macos", not(feature = "flutter")))]
if check_scroll_on_mac(mask, x, y) {
let factor = 3;
mouse_event.mask = crate::input::MOUSE_TYPE_TRACKPAD;
mouse_event.x *= factor;
mouse_event.y *= factor;
}
msg_out.set_pointer_device_event(evt);
interface.send(Data::Message(msg_out));
}