View Single Post
Old 05-03-2023, 02:17 AM   #550
kaznelson
Old Kaz
kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.
 
kaznelson's Avatar
 
Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
user-patch

Quote:
Originally Posted by NiLuJe View Post
But to answer your actual question: https://github.com/koreader/koreader...ector.lua#L117

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.
kaznelson is offline   Reply With Quote