From 08c700f7ab3ddd8a8fd6b34c20073bb4d88764ff Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Thu, 24 Oct 2024 12:58:42 +0200 Subject: [PATCH] `draggable` is deprecated and `gestureHandling` should be used. --- ts/WoltLabSuite/Core/Controller/Map/Route/Planner.ts | 2 +- .../files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/WoltLabSuite/Core/Controller/Map/Route/Planner.ts b/ts/WoltLabSuite/Core/Controller/Map/Route/Planner.ts index 594d3b8f0e..5650806911 100644 --- a/ts/WoltLabSuite/Core/Controller/Map/Route/Planner.ts +++ b/ts/WoltLabSuite/Core/Controller/Map/Route/Planner.ts @@ -57,7 +57,7 @@ class ControllerMapRoutePlanner implements DialogCallbackObject { const mapContainer = dialog.querySelector(".googleMap") as HTMLElement; this.map = new google.maps.Map(mapContainer, { disableDoubleClickZoom: window.WCF.Location.GoogleMaps.Settings.get("disableDoubleClickZoom"), - draggable: window.WCF.Location.GoogleMaps.Settings.get("draggable"), + gestureHandling: window.WCF.Location.GoogleMaps.Settings.get("draggable") ? "auto" : "none", mapTypeId: google.maps.MapTypeId.ROADMAP, scaleControl: window.WCF.Location.GoogleMaps.Settings.get("scaleControl"), scrollwheel: window.WCF.Location.GoogleMaps.Settings.get("scrollwheel"), diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js index d3151ff1b9..ac42801f54 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js @@ -45,7 +45,7 @@ define(["require", "exports", "tslib", "../../../Ajax/Status", "../../../Dom/Uti const mapContainer = dialog.querySelector(".googleMap"); this.map = new google.maps.Map(mapContainer, { disableDoubleClickZoom: window.WCF.Location.GoogleMaps.Settings.get("disableDoubleClickZoom"), - draggable: window.WCF.Location.GoogleMaps.Settings.get("draggable"), + gestureHandling: window.WCF.Location.GoogleMaps.Settings.get("draggable") ? "auto" : "none", mapTypeId: google.maps.MapTypeId.ROADMAP, scaleControl: window.WCF.Location.GoogleMaps.Settings.get("scaleControl"), scrollwheel: window.WCF.Location.GoogleMaps.Settings.get("scrollwheel"), -- 2.20.1