View Single Post
Old 07-16-2020, 07:29 AM   #29
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,248
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
Yes, in 4.20 wheel event handling was changed to accomodate touchpads. They send pixel scroll events for even the slightest movement, which makes them unusable for turning pages, since they turn too fast. Look in paged_mode.pyj in the onwheel() function there it tests if the mode is pixel scroll and requires enough pixels to accumulate before actually scrolling. You can add print(evt.deltaMode) and run the viewer as calibre-debug -w file.epub from a console to see the print output.
This is what it outputs:

Code:
INFO: userscript:viewer.js:24: 0
This line appears for every increment on my mouse wheel (backward or forward).
thiago.eec is online now