Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 12-23-2021, 01:53 PM   #1
OShead
Junior Member
OShead began at the beginning.
 
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.
OShead is offline   Reply With Quote
Old 12-23-2021, 09:30 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-24-2021, 12:26 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
theducks is offline   Reply With Quote
Old 12-30-2021, 07:57 AM   #4
OShead
Junior Member
OShead began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
Quote:
Originally Posted by kovidgoyal View Post
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.
I got that thanks and am now using that method. It stops scrolling at the end and will only jump to next page (chapter) if i lift the key and press it again. That's perfectly fine for my use.

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?
OShead is offline   Reply With Quote
Old 12-30-2021, 08:00 AM   #5
OShead
Junior Member
OShead began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
Quote:
Originally Posted by theducks View Post
Did you know you can scroll down using the spacebar (when the window has focus)?
Same with Preview (pane) in the Editor
Thanks for the reply, I've been through the shortcut settings and resorted to using the up down arrows as kovid describes.
OShead is offline   Reply With Quote
Advert
Old 12-30-2021, 08:00 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 12-30-2021, 08:08 AM   #7
OShead
Junior Member
OShead began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
Quote:
Originally Posted by kovidgoyal View Post
No, calibre's UI cannot be accessed from book JS for obvious security reasons.
I tried various methods, but they came back with what looked like a wrapped version of the page with starting like this... {"version":1,"tree":{"n":"

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";
          });
Do you know of anyway around this?

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.
OShead is offline   Reply With Quote
Old 12-30-2021, 09:24 AM   #8
OShead
Junior Member
OShead began at the beginning.
 
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.
OShead is offline   Reply With Quote
Old 12-30-2021, 09:42 AM   #9
OShead
Junior Member
OShead began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
Quote:
Originally Posted by OShead View Post
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.
Edit... The longest I can set "seconds to pause" for autoscroll is 50 seconds. anyway... back to the drawing board.
OShead is offline   Reply With Quote
Old 12-31-2021, 12:45 PM   #10
OShead
Junior Member
OShead began at the beginning.
 
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.
OShead is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:31 AM.


MobileRead.com is a privately owned, operated and funded community.