mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:09:00 +08:00
FIX: Incorrect header offset calculation (#15341)
I somehow changed the sign before committing #15221 🤦
This commit is contained in:
parent
2114dd53ef
commit
5eab90e0f8
|
@ -188,7 +188,7 @@ const SiteHeaderComponent = MountWidget.extend(
|
|||
let headerOffset = headerRect.top + headerRect.height;
|
||||
|
||||
if (window.scrollY < 0) {
|
||||
headerOffset -= window.scrollY;
|
||||
headerOffset += window.scrollY;
|
||||
}
|
||||
|
||||
const newValue = `${headerOffset}px`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user