History

Fix exception in $.scrollParent

Thibaut Courouble committed 9 years ago

Commit 02409321 parent 0330f891 file · +1 −1Browse files

Showing the changes to assets/javascripts/lib (1 of 1 file). Show all

Unified · Split

assets/javascripts/lib/util.coffee+1−1
@@ -158,7 +158,7 @@ $.offset = (el, container = document.body) -> · 157 unmodified lines
158 left: left158 left: left
159 159
160$.scrollParent = (el) ->160$.scrollParent = (el) ->
161 while el.nodeType is 1 and el = el.parentNode161 while (el = el.parentNode) and el.nodeType is 1
162 break if el.scrollTop > 0162 break if el.scrollTop > 0
163 break if getComputedStyle(el)?.overflowY in ['auto', 'scroll']163 break if getComputedStyle(el)?.overflowY in ['auto', 'scroll']
164 el164 el

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t