The discussion revolves around implementing a header scroll shadow effect on a Discourse forum, inspired by the official Ghost forum. Muhammed_EKİCİ notes that the effect is achieved using CSS and JavaScript to add a .scrolling class on scroll, but this behavior isn’t default in Discourse. awesomerobot confirms that the class is added via custom JavaScript. Johani provides a solution using IntersectionObserver to add a sticky class when the header becomes fixed, allowing custom styling. Muhammed_EKİCİ expresses gratitude. Later, Muhammed_EKİCİ reports that the code interferes with the PWA application, prompting Johani to request more details on the issue, which Muhammed_EKİCİ clarifies involves the theme header and testing on Ubuntu 20.04, Android 11, and Chrome.
They’ve added some custom javascript that adds the .scrolling class to the header on scroll, Discourse doesn’t to that by default (it does look nice!).
Yes add theme header. pwa continues to work after removing the code. I tested it on server with Ubuntu 20.04 installed with official installation instructions. on the live site. On Android 11 device and Chrome browser on PC.