mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Add controls for stroke width
This commit is contained in:
parent
b762b33fd0
commit
1fceef1dc3
@ -424,7 +424,19 @@ impl State {
|
||||
..
|
||||
},
|
||||
..
|
||||
} => self.camera_controller.process_keyboard(*key, *state),
|
||||
} => {
|
||||
match key {
|
||||
winit::event::VirtualKeyCode::Z => {
|
||||
self.scene.target_stroke_width *= 1.2;
|
||||
true
|
||||
}
|
||||
winit::event::VirtualKeyCode::H => {
|
||||
self.scene.target_stroke_width *= 0.8;
|
||||
true
|
||||
}
|
||||
_ => self.camera_controller.process_keyboard(*key, *state)
|
||||
}
|
||||
},
|
||||
WindowEvent::MouseWheel { delta, .. } => {
|
||||
self.camera_controller.process_scroll(delta);
|
||||
true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user