From 7df6ca49d3ad25ad285777ccabc1c8705b894829 Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Mon, 2 May 2022 16:18:38 +0200 Subject: [PATCH] Fix window size (#62) * Add a MapWindow traid which exposes the window dimensions. * Remove broken run configs * Fix run config * Adjust FromCanvas --- .idea/runConfigurations/Build_WASM.xml | 3 +- .../Pack_WASM__WebGPU___Release_.xml | 17 ---------- .idea/runConfigurations/Run_web__webgl__.xml | 12 ------- .idea/runConfigurations/Run_web__webgpu_.xml | 12 ------- maplibre/src/input/mod.rs | 5 +-- maplibre/src/input/pan_handler.rs | 3 +- maplibre/src/input/pinch_handler.rs | 4 +-- maplibre/src/input/query_handler.rs | 3 +- maplibre/src/input/shift_handler.rs | 4 +-- maplibre/src/input/tilt_handler.rs | 3 +- maplibre/src/input/zoom_handler.rs | 3 +- maplibre/src/lib.rs | 33 +++++++++++++------ maplibre/src/map_state.rs | 23 ++++++++----- maplibre/src/render/render_state.rs | 4 +-- maplibre/src/window.rs | 14 +++++++- maplibre/src/winit.rs | 22 ++++++------- 16 files changed, 79 insertions(+), 86 deletions(-) delete mode 100644 .idea/runConfigurations/Pack_WASM__WebGPU___Release_.xml delete mode 100644 .idea/runConfigurations/Run_web__webgl__.xml delete mode 100644 .idea/runConfigurations/Run_web__webgpu_.xml diff --git a/.idea/runConfigurations/Build_WASM.xml b/.idea/runConfigurations/Build_WASM.xml index 89ecf808..87453da2 100644 --- a/.idea/runConfigurations/Build_WASM.xml +++ b/.idea/runConfigurations/Build_WASM.xml @@ -1,12 +1,13 @@ -