Skip to content

Commit c37ef55

Browse files
committed
fix scroll
1 parent 849a2d3 commit c37ef55

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

js/post.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ $(document).ready(function(){
143143
});
144144

145145
var menuIndexTop = $('#menuIndex').offset().top;
146-
var menuIndexLeft = $('#menuIndex').offset().left;
147146

148147
$(window).scroll(function(){
149148
waitForFinalEvent(function(){
@@ -155,13 +154,11 @@ $(document).ready(function(){
155154
$('#menuIndex').css({
156155
position:'fixed'
157156
,top:'20px'
158-
,left:menuIndexLeft
159157
});
160158
}else{
161159
$('#menuIndex').css({
162160
position:'static'
163161
,top:0
164-
,left:0
165162
});
166163
}
167164

@@ -181,16 +178,6 @@ $(document).ready(function(){
181178
});
182179

183180
$(window).resize(function(){
184-
$('#menuIndex').css({
185-
position:'static'
186-
,top:0
187-
,left:0
188-
});
189-
190-
menuIndexTop = $('#menuIndex').offset().top;
191-
menuIndexLeft = $('#menuIndex').offset().left;
192-
193-
$(window).trigger('scroll')
194181
$('#menuIndex').css('max-height',$(window).height()-80);
195182
});
196183
})

0 commit comments

Comments
 (0)