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 13:46:17 +01:00
parent 3a17225546
commit 0d512dffc3

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()) {