4 ms·
Your buy a coffee link was not clickable on Firefox Android
by ttymck 2y ago
Your buy a coffee link was not clickable on Firefox Android
- palsecam 2y agoOK, finally found a fix: /* Work around Firefox Mobile getting the hit target (clickable area) of the game control buttons wrong, when the (bottom) navigation bar gets hidden (when scrolling down). See https://bugzilla.mozilla.org/show_bug.cgi?id=1813213 and https://stackoverflow.com/questions/70893056/mozilla-android-addressbar-conflict-with-sticky-button-on-bottom and https://news.ycombinator.com/item?id=40733062 ← thanks @ttymck for the bug report! */ if (/Mobile.+Firefox/.test(navigator.userAgent)) { self.addEventListener('resize', frameThrottle1(() => { document.getElementById('metagame').style.position = (window.outerHeight > window.innerHeight) ? 'sticky' : 'fixed'; })); }
- palsecam 2y agoOh thank you for that! Could reproduce that bug. It’s because of https://bugzilla.mozilla.org/show_bug.cgi?id=1813213 https://bugzilla.mozilla.org/show_bug.cgi?id=1813213 I just spent a couple hours trying to find a clean workaround, without success… Will investigate more ASAP. Thanks again!