mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Change the option 'Scroll mode' to be 'Reverse mouse wheel'
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1195,14 +1195,14 @@ impl LoginConfigHandler {
|
||||
self.save_config(config);
|
||||
}
|
||||
|
||||
/// Save mouse scroll mode("default", "reverse") to the current config.
|
||||
/// Save reverse mouse wheel ("", "Y") to the current config.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `value` - The view style to be saved.
|
||||
pub fn save_scroll_mode(&mut self, value: String) {
|
||||
/// * `value` - The reverse mouse wheel ("", "Y").
|
||||
pub fn save_reverse_mouse_wheel(&mut self, value: String) {
|
||||
let mut config = self.load_config();
|
||||
config.scroll_mode = value;
|
||||
config.reverse_mouse_wheel = value;
|
||||
self.save_config(config);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user