Issue with the UKBF site

James (iimttd)

Free Member
Sep 13, 2021
22
4
I'm having an issue with the UKBF where you need to scroll quite a bit to get the sticky header to do its things and allow to scroll:

For whoever needs it:
Chrome Version 98.0.4758.109 (Official Build) (x86_64)
MacOS 11.6
 
  • Like
Reactions: Ethan39
Upvote 0
ok so here is the original:

then, locally i removed all JS and plumbed in some css/js to 'debounce' the scrolling. This is more of a test, so not producion ready by any means but:
$(function() { var header = $(".p-navSticky"); $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 1) { header.addClass("is-sticky"); console.log("yes"); } else { setTimeout(function() { header.removeClass("is-sticky"); }, 100); //header.removeClass("is-sticky"); } }); });

helps:
 
Upvote 0
oh, and CSS .p-navSticky{ display:sticky; //to be sure height:100px; //test } .p-navSticky.is-sticky{ height:60px; //smaller test } .p-nav,.p-nav-inner{ height:100% !important; //set these to parent height for simplicity }
 
Upvote 0
Dude, what you got running? ?
Why the site so broken on your browser, logo and menu icons and breadcrumbs all broken.

Either way one of site devs will take a look.
The latter is me running the site with all javascript removed for testing, which means the icons, etc. wont render. The main issue looks like the offset gets messy at the moment, so I made it that the scroll down initiates the sticky header but only allows it back to the initial after 100ms, effectively debouncing the css.
 
  • Like
Reactions: Ozzy
Upvote 0
I've just tested the site on Firefox, Chrome, Edge, Safari and Brave and can't replicate the issue. It's all working as it should for me on Mac, PC, iPad and Android phone.
 
Upvote 0
I've just tested the site on Firefox, Chrome, Edge, Safari and Brave and can't replicate the issue. It's all working as it should for me on Mac, PC, iPad and Android phone.
Oddly, if i use a magic mouse or touchpad it's fine. Any non apple mouse and off it goes.
 
Upvote 0
I'm having an issue with the UKBF site

You get asked to create tags but you can't create tags unless you pay for them

This defeats the purpose of being asked to create tags

It also negatively affects the SEO of the forum

But what do I know?
 
Upvote 0

Latest Articles