Fix exception in $.scrollParent

pull/667/merge
Thibaut Courouble 7 years ago
parent 0330f89b36
commit 0240932198

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

Loading…
Cancel
Save