dedicate the first click to slideup the cover again but make sure the nav buttons remain functional
This commit is contained in:
parent
3a17225546
commit
0d512dffc3
@ -8,8 +8,7 @@
|
|||||||
aside_padding_top = parseInt($('aside').css('padding-top'));
|
aside_padding_top = parseInt($('aside').css('padding-top'));
|
||||||
section_padding_top = parseInt($('section').css('padding-top'));
|
section_padding_top = parseInt($('section').css('padding-top'));
|
||||||
|
|
||||||
$('#cover-photo').on('click', slideUpCover);
|
$(document).on('click mouseup keyup', slideUpCover);
|
||||||
$('#cover-photo').on('keyup', slideUpCover);
|
|
||||||
|
|
||||||
if($('#cover-photo').length && $(window).width() > 755) {
|
if($('#cover-photo').length && $(window).width() > 755) {
|
||||||
if($(window).scrollTop() < $('#cover-photo').height()) {
|
if($(window).scrollTop() < $('#cover-photo').height()) {
|
||||||
|
Reference in New Issue
Block a user