Commit ff34139
authored
Fix flickering header drop shadow (#884)
On iOS Safari, headerTop can sometimes be negative when scrolling and
the comparison to 0 is no longer true, which removes the drop shadow and
causes the flickering.
Remove the comparison with the header position to avoid DOM layout reads
and fix the flickering by not comparing to exactly 0.1 parent 71a6bff commit ff34139
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
0 commit comments