Skip to content

Commit

Permalink
fix(ios)(directions): result menu not scrolling up when opening
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Dec 10, 2024
1 parent 78a257d commit 58236a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/directions/directions-results-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* This program and the accompanying materials are made available under the terms of the GPL License, Version 3.0.
*/

import Globals from "../globals";
import Instruction from "./directions-instructions";
import utils from "../utils/unit-utils";

Expand Down Expand Up @@ -136,7 +137,12 @@ let DirectionsResultsDOM = {
labelShow.title = "Détails";
labelShow.textContent = "Détails";
labelShow.addEventListener("click", function () {
// TODO
setTimeout(() => {
if (inputShow.checked) {
Globals.currentScrollIndex = 1;
Globals.menu.updateScrollAnchors();
}
}, 50);
});
div.appendChild(labelShow);

Expand Down

0 comments on commit 58236a8

Please sign in to comment.