|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#541 | |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
Quote:
Please tell me, is it possible to do this with user patch? Spoiler:
Last edited by kaznelson; 04-13-2023 at 07:02 AM. |
|
![]() |
![]() |
![]() |
#542 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You'll have to ask someone actually fluent in trigonometry, that's not me
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#543 | |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
Quote:
![]() But I don't know how to make a user-patch... Code:
... if (not simple and math.abs(y_diff) > 1.732*math.abs(x_diff) <=== and math.abs(y_diff) < 3.732*math.abs(x_diff)) <=== or (simple and diagonal) then direction = v_direction .. h_direction elseif (math.abs(x_diff) > 0.577*math.abs(y_diff)) then <=== direction = h_direction ... |
|
![]() |
![]() |
![]() |
#544 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
See https://github.com/koreader/koreader/wiki/User-patches
You'll basically just want to replace the whole function with your tweaked variant. |
![]() |
![]() |
![]() |
#545 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'd forgotten a key implementation detail that would have made a patch require some fun low-level Lua shenanigans, and @poire-z caught it and went the extra mile: https://github.com/koreader/koreader...ent-1509160619
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#546 |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
|
![]() |
![]() |
![]() |
#547 |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
Minimum swipe distance
Please tell me about paging: in which lua-file can I increase the minimum swipe distance?
When I hold the e-book by the bottom edge with my thumb and flip through the pages not with the tip, but with tap the entire phalanx of my finger - and such a tap is regularly perceived by KOReader as a back-swipe (or a call to bottom menu, also assigned to a swipe)... Last edited by kaznelson; 05-02-2023 at 01:23 PM. Reason: add picture. |
![]() |
![]() |
![]() |
#548 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'd first double-check how your input device is actually reporting that, as it's not uncommon for some to do completely wonky shit if they're not designed to deal with that properly (which, on Linux, would be reporting a single touch event with auxiliary info indicating a larger oval shape for the contact)
![]() But to answer your actual question: https://github.com/koreader/koreader...ector.lua#L117 Last edited by NiLuJe; 05-02-2023 at 01:24 PM. |
![]() |
![]() |
![]() |
#549 |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
Thanks, I'll try experimenting with this value!
Problem with PocketBook's is that when touch-screen goes to sleep, touches on the screen are not perceived well - gesture must be very explicit. Quick and "weightless" gestures are usually perceived as a simple tap; while a single, but "smeared" tap - like a swipe. My finger touches the screen gradually, from left to right - this is probably what confuses the e-book... |
![]() |
![]() |
![]() |
#550 | |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
user-patch
Quote:
And how to change the swipe distance with a user-patch? It doesn't work: Code:
local GestureDetector = require("device/gesturedetector") GestureDetector.init = function() self.PAN_THRESHOLD = self.screen:scaleByDPI(70) end Last edited by kaznelson; 05-03-2023 at 02:20 AM. Reason: quote. |
|
![]() |
![]() |
![]() |
#551 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Don't overwrite `GestureDetector.init`, just `GestureDetector.PAN_THRESHOLD`
![]() (And if you need access to Screen, either go at it via Device, or via `GestureDetector.screen`. All the input classes are singletons). (And in a patch with a prefix >= 2, IIRC). |
![]() |
![]() |
![]() |
#552 | |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
Quote:
Code:
local GestureDetector = require("device/gesturedetector") GestureDetector.PAN_THRESHOLD = GestureDetector.screen:scaleByDPI(70) ![]() It's too difficult for me, I'll edit `gesturedetector.lua` directly... |
|
![]() |
![]() |
![]() |
#553 |
Sorry for my English
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 458
Karma: 3009894
Join Date: Aug 2018
Location: France.Besancon
Device: KOBO.PocketBook.ONYX
|
Wow! I am really surprised how reactive and fast my pocketbook is after the last update!
I don't know what changes have taken place, but after the last update I see a big acceleration both in menu navigation and in various settings. Device on which I use Koreader: Pocketbook Inkapd 3 (V740) The acceleration is so great that it has reached the level of reactivity on the same level as the significantly more powerful "Tolino Vision 6" device. I thank the developers for the work done, really bravo guys.. thanks to this new version, using my Pocketbook (which is not exactly one of the fastest) will be more pleasant. Last edited by Michal Jancik; 06-09-2023 at 09:57 AM. |
![]() |
![]() |
![]() |
#554 |
Member
![]() Posts: 23
Karma: 10
Join Date: Jul 2023
Device: PocketBook InkPad Color PB742
|
My device is Pocketbook InkPad Color (PB742) with the OS is Android.
Should I follow this thread or thread for android? Tks. |
![]() |
![]() |
![]() |
#555 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,316
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
calibre, epub, koreader, pb742, pdf, pocketbook |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1268 | 02-27-2024 11:49 AM |
CBZ plugin interaction with FB2/DjVu plugins - First try at pinpointing | MrWarper | iRex | 2 | 12-11-2011 05:46 AM |
Raccoon Reader - reads ePub, fb2, fb2.zip, txt on WP7 for free | Andrei_Shvydryk | Reading and Management | 0 | 10-31-2011 03:17 PM |
v3 vs. v3+ as a pdf/DjVu reader | hedonism_bot | HanLin eBook | 7 | 11-02-2010 08:16 PM |
New PDF to LRF Tool (for DJVU and CBZ files too) | RWood | Sony Reader | 0 | 08-29-2007 02:13 PM |