The scroll to top button does not appear in IE8 while scrolling down.
It seems that $(this).scrollTop() > 100 is always false.
Perhaps related to ScrollTop not working in IE.
Attaching a patch, which tests if document.documentElement.scrollTop exists, and use it as a fallback.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | scroll_to_top-ie8_scrolltop_fix-2199267-2.patch | 595 bytes | jfhovinne |
Comments
Comment #1
jfhovinne commentedHere is the patch.
Comment #2
jfhovinne commentedComment #3
tarekdj commentedGood job jfhovinne. The code looks good for me. I wonder if you can provide some before/after screenshots.
Thank you again.
Comment #4
jfhovinne commentedSorry, screenshots not available.
Before: no button as it is hidden by
$("#back-top").hide();.After: button is displayed while scrolling down.
Comment #5
tarekdj commentedComment #6
tarekdj commentedcommited to 7.x-2.x! Merci jfhovinne :)
Comment #7
tarekdj commentedIssue marked for our Tunisian local sprint next week :)
Comment #8
willieseabrook commentedComment #10
astonvictor commentedD6 reached its EOL back in February 2016, and there is no active release for D6 for this module anymore.
Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.