dedicate the first click to slideup the cover again but make sure the nav buttons remain functional

This commit is contained in:
Mario Vavti
2017-11-11 20:28:22 +01:00
committed by Mario
parent ebee3e208c
commit 66338a5757
+1 -2
View File
@@ -8,8 +8,7 @@
aside_padding_top = parseInt($('aside').css('padding-top'));
section_padding_top = parseInt($('section').css('padding-top'));
$('#cover-photo').on('click', slideUpCover);
$('#cover-photo').on('keyup', slideUpCover);
$(document).on('click mouseup keyup', slideUpCover);
if($('#cover-photo').length && $(window).width() > 755) {
if($(window).scrollTop() < $('#cover-photo').height()) {