Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-17-2021, 06:44 AM   #1
3m2vinatohr04
Junior Member
3m2vinatohr04 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2021
Device: Kindle PW3
Exclamation Overlapping tap zones

Hello everyone,

I'm trying on changing the next and previous tap zones to the following:

1 wide zone for the next page and 1 smaller zone right smack in the middle for the previous page



The problem is it at the overlapped zone, the next page is being triggered instead of the previous page. Is there a way to set the z index of the tap zones?
3m2vinatohr04 is offline   Reply With Quote
Old 04-17-2021, 11:14 AM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 11,637
Karma: 20444609
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O & Forma
Not without code changes. IIRC, Next is indeed over Prev (on the basis that it's a much more common occurrence than Prev ).

c.f., registerTouchZones @ frontend/apps/reader/modules/readerrolling.lua (reflowable documents) & frontend/apps/reader/modules/readerpaging.lua (non-reflowable documents).

Last edited by NiLuJe; 04-17-2021 at 04:39 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 04-17-2021, 12:26 PM   #3
Pajamaman
Wizard
Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.Pajamaman ought to be getting tired of karma fortunes by now.
 
Pajamaman's Avatar
 
Posts: 2,314
Karma: 7324429
Join Date: May 2016
Location: Canada
Device: Onyx Nova
I set the whole screen to be a next page button (except for the middle which brings up the menu), and used swipe to page back. I rarely do previous page.

https://www.mobileread.com/forums/sh....php?p=3930863

Android version:

https://www.mobileread.com/forums/sh...d.php?t=325088
Pajamaman is offline   Reply With Quote
Old 04-17-2021, 01:36 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 11,637
Karma: 20444609
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O & Forma
Right, that's another viable approach, as swipes > taps (in terms of gesture detection, I mean. I hate swipes ^^).

(Note that, unlike the tap zones Z order discussed above, that's a general rule: detecting a gesture requires a finger up event, and if the finger moved far enough, that makes it a swipe instead of a tap, so, by definition, swipes > taps).

Last edited by NiLuJe; 04-17-2021 at 01:38 PM.
NiLuJe is offline   Reply With Quote
Old 04-17-2021, 03:55 PM   #5
3m2vinatohr04
Junior Member
3m2vinatohr04 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2021
Device: Kindle PW3
Quote:
Originally Posted by NiLuJe View Post
Not without code changes. IIRC, Next is indeed over Prev.

c.f., registerTouchZones @ frontend/apps/reader/modules/readerrolling.lua (reflowable documents) & frontend/apps/reader/modules/readerpaging.lua (non-reflowable documents).

Thank you for pointing me to the right lua file!

Quote:
I set the whole screen to be a next page button (except for the middle which brings up the menu), and used swipe to page back. I rarely do previous page.

https://www.mobileread.com/forums/sh....php?p=3930863

Android version:

https://www.mobileread.com/forums/sh...d.php?t=325088
Great suggestion. Will try this setup.
3m2vinatohr04 is offline   Reply With Quote
Advert
Old 04-18-2021, 09:00 AM   #6
3m2vinatohr04
Junior Member
3m2vinatohr04 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2021
Device: Kindle PW3
UPDATE:
Finally found the solution for this!

In order to change the z-index for the forward and backward zones, the order in
Code:
overrides = {},
must be change in these files:

Quote:
E:\koreader\frontend\apps\reader\modules\readercon fig.lua
E:\koreader\frontend\apps\reader\modules\readerfoo ter.lua
E:\koreader\frontend\apps\reader\modules\readerhig hlight.lua
E:\koreader\frontend\apps\reader\modules\readerlin k.lua
E:\koreader\frontend\apps\reader\modules\readermen u.lua
3m2vinatohr04 is offline   Reply With Quote
Old 04-18-2021, 02:45 PM   #7
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 11,637
Karma: 20444609
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O & Forma
Passersby: don't actually empty the table. Keyword being "reorder", not "empty".

The gnarly details involve building a depgraph from these lists, and insertion order is preserved.

TL;DR: A simpler tweak would just be to re-order the original registration of the tap_* zones, which is what I linked in my original answer.

Last edited by NiLuJe; 04-18-2021 at 02:48 PM.
NiLuJe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fbreader ios vs android tap zones peaceridge Reading and Management 4 11-29-2020 12:43 PM
Two separate 'tap forward' zones? Pavati KOReader 10 07-19-2020 06:55 AM
Custom tap page turn zones ReaLx3m Kobo Reader 8 10-20-2017 07:41 AM
Changing Tap Zones MSch Kindle Developer's Corner 6 03-03-2013 05:14 PM
Time Zones Tinks Feedback 9 01-01-2011 08:31 PM


All times are GMT -4. The time now is 12:53 AM.


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