Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prev/Next page actions to GestureManager #4570

Merged
merged 1 commit into from
Feb 9, 2019
Merged

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Feb 9, 2019

@NiLuJe
Copy link
Member Author

NiLuJe commented Feb 9, 2019

Also changed the internal action names, because PgUp generally goes backwards on a keyboard ;).

@Frenzie Frenzie merged commit 5eb4fc5 into koreader:master Feb 9, 2019
@Frenzie Frenzie added the UX label Feb 9, 2019
self:pageUpdate(10)
elseif action == "page_update_down10" then
elseif action == "page_jmp_fwd_1" then
self:pageUpdate(1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On EPUB this works as expected (at least in page-separated mode) but on PDF/DjVu this specific command definitely isn't the right one. It's supposed to move the display by a screen length, not to literally go to the next page in the document.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function ReaderRolling:onTapForward()
self:onGotoViewRel(1)
return true
end
function ReaderRolling:onTapBackward()
self:onGotoViewRel(-1)
return true
end

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stupid idea: send a "TapForward" event instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't sound that stupid. ReaderPaging also does one that' called "Rel", just a different one.

function ReaderPaging:onTapForward()
    self:onPagingRel(1)
    return true
end

function ReaderPaging:onTapBackward()
    self:onPagingRel(-1)
    return true
end

Frenzie added a commit to Frenzie/koreader that referenced this pull request Feb 24, 2019
Otherwise you can get rather unexpected results in paged media and scroll mode.

Workaround suggested by @NiLuJe here: koreader#4570 (comment)
Frenzie added a commit to Frenzie/koreader that referenced this pull request Feb 24, 2019
Otherwise you can get rather unexpected results in paged media and scroll mode.

Workaround suggested by @NiLuJe here: koreader#4570 (comment)
Frenzie added a commit that referenced this pull request Feb 24, 2019
Otherwise you can get rather unexpected results in paged media and scroll mode.

Workaround suggested by @NiLuJe here: #4570 (comment)
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
…er#4658)

Otherwise you can get rather unexpected results in paged media and scroll mode.

Workaround suggested by @NiLuJe here: koreader#4570 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants