summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-15 09:46:16 +0100
committerPhil Hughes <me@iamphill.com>2017-08-15 09:46:16 +0100
commit2f3eeb10814ef8c4f07cd25c9692524825d7681c (patch)
tree6b5daf0843a0c13276567ea6d1ccf74ae1e3ab77 /app
parentde0d0e4e47dffdab3f507ba93dcdff27da4d7421 (diff)
downloadgitlab-ce-2f3eeb10814ef8c4f07cd25c9692524825d7681c.tar.gz
Fixes sticky class being removed when over-scrolling in Safarisafari-overscroll-sticky-fix
Closes #36457
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/lib/utils/sticky.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/sticky.js b/app/assets/javascripts/lib/utils/sticky.js
index 43a808b6ab3..ff2b66046b4 100644
--- a/app/assets/javascripts/lib/utils/sticky.js
+++ b/app/assets/javascripts/lib/utils/sticky.js
@@ -1,7 +1,7 @@
export const isSticky = (el, scrollY, stickyTop) => {
const top = el.offsetTop - scrollY;
- if (top === stickyTop) {
+ if (top <= stickyTop) {
el.classList.add('is-stuck');
} else {
el.classList.remove('is-stuck');