mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Fix zooming on web
This commit is contained in:
parent
e2051b0b1a
commit
64fff4c976
@ -75,7 +75,7 @@ impl ZoomHandler {
|
|||||||
winit::event::MouseScrollDelta::PixelDelta(winit::dpi::PhysicalPosition {
|
winit::event::MouseScrollDelta::PixelDelta(winit::dpi::PhysicalPosition {
|
||||||
y: scroll,
|
y: scroll,
|
||||||
..
|
..
|
||||||
}) => *scroll,
|
}) => *scroll / 100.0,
|
||||||
} * self.sensitivity;
|
} * self.sensitivity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -231,9 +231,9 @@ impl IOScheduler {
|
|||||||
let tile_coords = *coords;
|
let tile_coords = *coords;
|
||||||
|
|
||||||
if let Some(id) = tile_request_state.start_tile_request(tile_request) {
|
if let Some(id) = tile_request_state.start_tile_request(tile_request) {
|
||||||
info!("new tile request: {}", &tile_coords);
|
|
||||||
|
|
||||||
if let Some(tile_coords) = tile_coords.into_tile(TileAddressingScheme::TMS) {
|
if let Some(tile_coords) = tile_coords.into_tile(TileAddressingScheme::TMS) {
|
||||||
|
info!("new tile request: {}", &tile_coords);
|
||||||
|
|
||||||
self.schedule_method
|
self.schedule_method
|
||||||
.schedule_tile_request(self, id, tile_coords);
|
.schedule_tile_request(self, id, tile_coords);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user