Fossil SCM

Increased the transition delay to make the initial drop-down animation happen in Firefox 62.

wyoung 2018-09-10 09:02 js-hamburger-menu
Commit 8918a8a80a488a97ee6891f023396a920a8ed3a44b7627e8b4420f706cbc7eae
1 file changed +1 -1
--- skins/default/footer.txt
+++ skins/default/footer.txt
@@ -45,11 +45,11 @@
4545
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions#JavaScript_examples
4646
function showPanel() {
4747
setTimeout(function() {
4848
panel.style.maxHeight = panelHeight;
4949
panel.style.border = panelBorder;
50
- }, 10);
50
+ }, 25); // 10 is insufficient with Firefox 62
5151
}
5252
5353
// Click handler for the hamburger button.
5454
var needSitemapHTML = true;
5555
document.querySelector("div.mainmenu > a").onclick = function() {
5656
--- skins/default/footer.txt
+++ skins/default/footer.txt
@@ -45,11 +45,11 @@
45 // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions#JavaScript_examples
46 function showPanel() {
47 setTimeout(function() {
48 panel.style.maxHeight = panelHeight;
49 panel.style.border = panelBorder;
50 }, 10);
51 }
52
53 // Click handler for the hamburger button.
54 var needSitemapHTML = true;
55 document.querySelector("div.mainmenu > a").onclick = function() {
56
--- skins/default/footer.txt
+++ skins/default/footer.txt
@@ -45,11 +45,11 @@
45 // https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions/Using_CSS_transitions#JavaScript_examples
46 function showPanel() {
47 setTimeout(function() {
48 panel.style.maxHeight = panelHeight;
49 panel.style.border = panelBorder;
50 }, 25); // 10 is insufficient with Firefox 62
51 }
52
53 // Click handler for the hamburger button.
54 var needSitemapHTML = true;
55 document.querySelector("div.mainmenu > a").onclick = function() {
56

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button