mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
reverted change becasue slidetransitioned doesn't seem to actually fire.
This commit is contained in:
@@ -35,14 +35,16 @@
|
|||||||
touch: false,
|
touch: false,
|
||||||
transition: 'slide',
|
transition: 'slide',
|
||||||
plugins: [ RevealMenu ]
|
plugins: [ RevealMenu ]
|
||||||
}).then(() => {Reveal.slide({{ status.last_read_page }})} );
|
}).then(() => {
|
||||||
|
Reveal.slide({{ status.last_read_page }})
|
||||||
|
|
||||||
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 + "/"})
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reveal.on( 'slidechanged', event => {
|
||||||
|
console.log( event.currentSlide );
|
||||||
|
document.getElementsByClassName('slides')[0].scrollIntoView({behavior: 'smooth'})
|
||||||
|
$.ajax({url: "/comic/set_page/{{nav.cur_path}}/" + event.indexh + "/"})
|
||||||
|
});
|
||||||
|
|
||||||
const hammertime = new Hammer(document.getElementById('comic_box'), {});
|
const hammertime = new Hammer(document.getElementById('comic_box'), {});
|
||||||
hammertime.on('swipeleft', function (ev) {
|
hammertime.on('swipeleft', function (ev) {
|
||||||
|
|||||||
Reference in New Issue
Block a user