Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -158,7 +158,7 @@ $.offset = (el, container = document.body) -> · 157 unmodified lines | ||
| 158 | 158 | left: left |
| 159 | 159 | |
| 160 | 160 | $.scrollParent = (el) -> |
| 161 | − while el = el.parentNode | |
| 161 | + while el.nodeType is 1 and el = el.parentNode | |
| 162 | 162 | break if el.scrollTop > 0 |
| 163 | 163 | break if getComputedStyle(el)?.overflowY in ['auto', 'scroll'] |
| 164 | 164 | el |