12-23-2021, 01:53 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
|
Disable flow mode mouse scrolling to the next/prevous page.
Is there any way that I can disable this feature. I usually play audio and follow the along with the text and sometimes, (most of the time) I don't want to move on to the next page. When I navigate to the bottom of the page while using the mouse wheel while still having some of the text and audio to play, it automatically jumps to the next page because I've hit the bottom. It's pretty annoying and upsets the flow.
So, just to sum up. I'd like to use the scroll wheel to move up and down a page but not to jump to the next or the previous page. There's obivously a feature that's been added to the viewer that makes this happen, is it possible to have a check box to toggle it on or off? Thanks. |
12-23-2021, 09:30 PM | #2 |
creator of calibre
Posts: 44,499
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I am confused. There are no pages in flow mode, that's the whole point of flow mode. If you mean internal file boundaries (aka chapters) there is a setting to prevent scrolling with keys from doing this in the viewer preferences under Scrolling behavior. So enable that setting and scroll with keys instead of th emouse wheel.
|
Advert | |
|
12-24-2021, 12:26 PM | #3 |
Well trained by Cats
Posts: 30,441
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Did you know you can scroll down using the spacebar (when the window has focus)?
Same with Preview (pane) in the Editor |
12-30-2021, 07:57 AM | #4 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
|
Quote:
I do have another question if you don't mind. I play an audio file when the page is opened and use an eventlistener with javascript to detect the end of the audio file. I tried to call with javascript the next page but it doesn't work. And it seems I can't call any of the keyboard shortcuts you have setup either without user interaction. Is there a way I can access the calibre api (or something ) with javascript to go to next page exactly the way Ctrl+PageDown does? |
|
12-30-2021, 08:00 AM | #5 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
|
|
Advert | |
|
12-30-2021, 08:00 AM | #6 |
creator of calibre
Posts: 44,499
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, calibre's UI cannot be accessed from book JS for obvious security reasons.
|
12-30-2021, 08:08 AM | #7 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
|
Quote:
Code:
audioPlayer.addEventListener("ended", function(e){ console.log("audio ended"); //window.open('part021.html', '_self'); //window.location.replace("part02.html"); //window.location.assign("part02.html"); //location.replace("part021.html"); //location.href = "part021.html"; }); Just for context, they are short one minute long language lessons with text and sometimes I like to listen in background while doing something else like make dinner and etc... So I'd just like for it to play through the book, page after page, without user interaction. |
|
12-30-2021, 09:24 AM | #8 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
|
Ok. so how i've been able to get around it for now is this. Knowing that each audio file is around 1 min long, give or take 10 seconds and each page fits without scrolling, I have set Autoscroll to go to next page @ 75 seconds. The audio is usually finished playing by then and the next page autoplays the next audio. It works for this book with short chapters but longer texts of various sizes is another story.
|
12-30-2021, 09:42 AM | #9 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
|
Quote:
|
|
12-31-2021, 12:45 PM | #10 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
|
So this is where I'm at with this. I'm not a programmer and just having a little fun with it. If not learning a little in the process.
The audio plays on the page and text is highlighted to correspond with the currently playing audio. I have just added an ability to scroll along with the text or and to go to the location of where ever the audio is playing. It works well for longer chapters. Now looking for a way to jump to next page (chapter) when the audio finishes playing. Here's a little demo... https://youtu.be/OM8sPTydAP4 Last edited by OShead; 12-31-2021 at 12:50 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mouse wheel scrolling needs two steps? | MadMinstrel | Viewer | 2 | 07-08-2021 03:05 PM |
How is the new page scrolling mode of Nova 2? | ilyasson | Onyx Boox | 2 | 10-05-2020 02:11 AM |
Is there a way to read pdf files in a flow, scrolling down leading to the next page? | jlemonde | Kobo Reader | 4 | 09-19-2018 12:49 PM |
Mouse scrolling settings? | exachillus | Calibre | 1 | 09-02-2014 11:47 AM |
Mouse wheel scrolling problem | CeeBeePee | Calibre | 8 | 08-11-2013 11:37 PM |