We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba19987 commit 62f987cCopy full SHA for 62f987c
js/ditto.js
@@ -252,13 +252,16 @@ function router() {
252
})();
253
254
255
- var perc = ditto.save_progress ? store.get('page-progress') || 0 : 0;
+ var perc = ditto.save_progress ? store.get('page-progress') || 0 : 0;
256
257
if(location.hash !== '' || Boolean(perc)){
258
if (!Boolean(perc)){
259
$('html, body').animate({
260
- scrollTop: $('#content').offset().top
261
- }, 200);
+ scrollTop: ($('#content').offset().top + 10)
+ }, 300);
262
+ $('html, body').animate({
263
+ scrollTop: ($('#content').offset().top)
264
265
} else {
266
267
scrollTop: ($('body').height()-$(window).height())*perc
0 commit comments