-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Is it possbile to disable touch ( navigate) property of the progress bar ? #9277
Comments
What progress bar are you talking about ? The one in the footer does not jump on touch (the footer hides/shows on touch as a whole, without jumping, and this can be disabled with "Lock status bar" in the menu). |
The one I'm talking about is in the footer. It turns out that it does not jump always; only while reading a PDF and in Page Preview mode ( when I clicked on the top left corner). Otherwise it does not jump as you said. |
I didn't even know about this "feature" :) koreader/frontend/apps/reader/modules/readerfooter.lua Lines 2350 to 2366 in 3a4af5e
Is it a mode you spent a lot of time in ?! May be it just needs to add the current location "to stack", so you can "Go back to previous location": --- a/frontend/apps/reader/modules/readerfooter.lua
+++ b/frontend/apps/reader/modules/readerfooter.lua
@@ -2359,6 +2359,7 @@ function ReaderFooter:onTapFooter(ges)
-- if reader footer is not drawn before the dimen value should be nil
if dimen then
local percentage = (pos.x - dimen.x)/dimen.w
+ self.ui.link:addCurrentLocationToStack()
self.ui:handleEvent(Event:new("GotoPercentage", percentage))
end
self:onUpdateFooter(true) (I have "Go back to previous location" associated to a horizontal swipe - but horizontal swipe in this "page preview" does scroll pages :) so you need to get out of "page preview" to get "Go back to previous location" to work.) I guess the above should only happen once when in page preview, not for every jump - so that if you do 10 jumps, you don't have to do 10 "go back to previous location"). |
It's called page flipping mode for a reason. ;-) |
Thanks for your reply, and time , I'll add this modification, and try to use "Go back to previous location" function. Or I can disable this jumping function with commenting out the line below. ( I guess) The reason I currently use page flipping more frequent is as follows: The PDF I'm currently reading has some blank pages which only have a vertical thick line in them , and auto clip function considers this page as a long vertical one, hence scrolling takes some time. as a shortcut I'm using this page flipping mode. |
Yes, you could hack the code, but you'll have to do it after each update. For your wish, it could be as simple as creating a directory local ReaderFooter = require("apps/reader/modules/readerfooter")
local onTapFooter_orig = ReaderFooter.onTapFooter
ReaderFooter.onTapFooter = function(self, ges)
if self.view.flipping_visible then return true end
return onTapFooter_orig(self, ges)
end |
Thanks again, created the folder and the file. 👍 |
I looooove the new flag :) |
Glad you do :) There's still something to do about the addLocationToStack on the first "go to page/percentage" (and only the first) after entering flipping mode. |
Following these older issues but I can't figure out how to enable or even locate 'Page Preview mode' and 'page flipping mode' in the latest KOreader versions in, e.g., the help menu search—were they renamed? |
As far as this issue is concerned, page preview appears to have been referring in all cases to the page flip thingy, which is specific to non-reflowable documents. It's probably hidden away somewhere in the top Document tab, but is also bound by default to a corner tap (I want to say top-left?). Nowadays, you're probably best served by @poire-z's document overview thingy (which I'm somewhat unfamiliar with, so, that isn't its name either, probably ;p). |
We don't have anything named like that.
Looks like it is not in the menu, only available via gestures. There is also Bookmark flipping, that appear in the menu - and is not associated to any gesture by default. There is also the Skim widget (first menu too) that allows browsing pages and bookmarks.
I think Dispatcher/Gestures actions are not included in Menu search because they would be twentyplicated as they appear in all the Gesture type submenus.
:( |
"twentyplicated" lol, understandable. I see, so 'Toggle bookmark flipping' enables 'Bookmark browsing mode'. I wasn't aware of the page flipping mode—maybe you can have only one of these two modes enabled at once since their icons are displayed in the same place. I'll have to experiment to see how page flipping mode differs.
What is this? I'd love to read it. I think "Skim widget" corresponds to "Reader -> Skim Menu" gesture action. I asked because I'm trying to figure out if there's a way to enable the bottom status bar in 'bookmark browsing mode' that lets you 'skim' to the nearest page by tapping a certain portion of the status bar (not tap-and-hold footer to skim), but be able to do this tapping outside of 'bookmark browsing mode' (in place of show/hide the bottom status bar). By the way, I freaking love this app and don't say it enough. Thanks for all your support. |
Indeed, these 2 things are mutually exclusive: it's mostly the same bit of code, that behave differently whether the But these 2 things are really old KOReader features, from before most of us current active developpers came in... and I think we hardly ever use them or really know how they work :/ They are there, they are not in our way when adding new stuff, so we haven't yet had to think whether we should remove them :)
That's "Page browser" (that you know about, cf your thumbnail preload FR).
Again, an old feature we're mostly not aware of :/ I was looking for a github issue I had commented in with a user-patch to disable that, and.... it happened to be this issue here :) |
It seems at least @jonnyl2 uses and understands page flipping mode (e.g. #10720) so maybe he'd know how they differ and whether they should be kept vs. newer options.
Ah I thought he was referring to some documentation about documents, lol. Thanks, page browser is invaluable. |
The newer Page browser together with its sibling Book map are definitely far superior to the older page flipping mode, which only works for fixed-layout documents. You can flip very quickly through a whole book. You can use left/right swipe for slow page flips, and up/down swipes to flip through the whole book. Or you can tap somewhere on the progress bar to jump to that area. A quick swipe always returns you to the page where you entered page flipping mode. If page flipping mode went away, it wouldn't be a huge loss for me, but it's nice having an alternative way of browsing a book available. Also, I often use it to find a specific page on PDFs where the page numbers are cropped out of view in the reader, because in page flipping the full page is shown by default. |
I don't think they're even close to the same thing. The one is page flipping, which of course doesn't make sense for EPUB because EPUB is always in page flipping mode. The point is you quickly see the whole page rather than part of the page for flipping purposes. |
It is good to have progress bar to know where I am in, However sometimes I mistakenly touch the progress bar and navigate to a different place, and it is hard to get back to the page I read. So is there a way to disable touch (navigate) property of the progress bar?
(using the app on Kobo Forma)
The text was updated successfully, but these errors were encountered: