Commit 52d1084c authored by Flaburgan's avatar Flaburgan Committed by Steffen van Bergerem

Fix back to top icon not appearing on webkit browsers

parent dc4604bc
......@@ -16,7 +16,7 @@ app.views.BackToTop = Backbone.View.extend({
},
toggleVisibility: function() {
if($("html, body").scrollTop() > 1000) {
if($(document).scrollTop() > 1000) {
$("#back-to-top").addClass("visible");
} else {
$("#back-to-top").removeClass("visible");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment