mirror of
https://github.com/trambarhq/relaks-wordpress-example.git
synced 2025-09-03 05:02:34 +02:00
Fixed Safari glitch.
This commit is contained in:
@@ -90,6 +90,9 @@ class FrontEnd extends PureComponent {
|
||||
let container = document.body;
|
||||
let previousPos = this.previousScrollPosition || 0;
|
||||
let currentPos = container.scrollTop;
|
||||
if (currentPos === 0 && container.parentNode.scrollTop > 0) {
|
||||
currentPos = container.parentNode.scrollTop;
|
||||
}
|
||||
let delta = currentPos - previousPos;
|
||||
if (delta > 0) {
|
||||
if (!topNavCollapsed) {
|
||||
|
Reference in New Issue
Block a user