mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Add shortcuts to control the double page mode offset
This commit is contained in:
@ -1083,6 +1083,36 @@ void Viewer::setBookmarks()
|
||||
bd->setBookmarks(*render->getBookmarks());
|
||||
}
|
||||
|
||||
void Viewer::offsetDoublePageToTheLeft()
|
||||
{
|
||||
if (!doublePage) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (doubleMangaPage) {
|
||||
render->previousPage();
|
||||
} else {
|
||||
render->nextPage();
|
||||
}
|
||||
|
||||
updateInformation();
|
||||
}
|
||||
|
||||
void Viewer::offsetDoublePageToTheRight()
|
||||
{
|
||||
if (!doublePage) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (doubleMangaPage) {
|
||||
render->nextPage();
|
||||
} else {
|
||||
render->previousPage();
|
||||
}
|
||||
|
||||
updateInformation();
|
||||
}
|
||||
|
||||
void Viewer::showIsCoverMessage()
|
||||
{
|
||||
if (!shouldOpenPrevious) {
|
||||
|
Reference in New Issue
Block a user