mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
add timeout to scroll to make it more consistant.
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
Reveal.on( 'slidechanged', event => {
|
Reveal.on( 'slidechanged', event => {
|
||||||
document.getElementsByClassName('slides')[0].scrollIntoView({behavior: 'smooth'})
|
setTimeout(() =>{document.getElementsByClassName('slides')[0].scrollIntoView({behavior: 'smooth'})}, 100)
|
||||||
$.ajax({url: "/comic/set_page/{{nav.cur_path}}/" + event.indexh + "/"})
|
$.ajax({url: "/comic/set_page/{{nav.cur_path}}/" + event.indexh + "/"})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user