mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 10:36:55 +00:00
changed event on slide changed to transitioned as sometimes the scroll would not fire correctly.
This commit is contained in:
1 parent
08a0906e9f
commit
2185b69500
1 file changed
+1
-1
@@ -37,7 +37,7 @@
|
||||
plugins: [ RevealMenu ]
|
||||
}).then(() => {Reveal.slide({{ status.last_read_page }})} );
|
||||
|
||||
Reveal.addEventListener( 'slidechanged', function( event ) {
|
||||
Reveal.addEventListener( 'slidetransitionend', function( event ) {
|
||||
// event.previousSlide, event.currentSlide, event.indexh, event.indexv
|
||||
document.getElementsByClassName('present')[0].scrollIntoView({behavior: 'smooth'})
|
||||
$.ajax({url: "/comic/set_page/{{nav.cur_path}}/" + event.indexh + "/"})
|
||||
|
||||
Reference in new issue
Block a user