Fix exception in $.scrollParent

pull/666/merge
Thibaut Courouble 7 years ago
parent 437eb8dd54
commit 5ce239d211

@ -158,7 +158,7 @@ $.offset = (el, container = document.body) ->
left: left
$.scrollParent = (el) ->
while el = el.parentNode
while el.nodeType is 1 and el = el.parentNode
break if el.scrollTop > 0
break if getComputedStyle(el)?.overflowY in ['auto', 'scroll']
el

Loading…
Cancel
Save