mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
Focs and reset scroll on page body
This commit is contained in:
@@ -40,8 +40,5 @@ require([
|
||||
|
||||
// Init navigation
|
||||
navigation.init();
|
||||
|
||||
// Focus on content
|
||||
$(".book-body").focus();
|
||||
});
|
||||
});
|
||||
@@ -42,6 +42,12 @@ define([
|
||||
|
||||
// Show progress
|
||||
progress.show();
|
||||
|
||||
// Reset scroll
|
||||
$(".book-body").scrollTop(0);
|
||||
|
||||
// Focus on content
|
||||
$(".book-body").focus();
|
||||
};
|
||||
|
||||
var handlePagination = function (e) {
|
||||
|
||||
Reference in New Issue
Block a user