Feature Request: Customizable Touchscreen Behaviors in Content Server's Web Viewer

Bug #2023367 reported by 23452gdfg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

The current fixed touchscreen behaviors in the Content Server's web viewer of calibre are causing interference with certain use cases. I kindly request the implementation of customizable behaviors to address this issue.

Specifically, I propose making all swipe actions configurable as they currently disrupt the scanning functionality of dictionary extensions such as Yomichan and nazeka. Disabling swipes would allow these extensions to function properly within the web viewer.

Enabling customization of touchscreen behaviors would make calibre an ideal choice for the Japanese learning community, potentially leading them to transition from platforms like https://reader.ttsu.app/. With calibre's superior library management capabilities, learners could benefit from an all-in-one solution for their reading and language learning needs.

Additionally, it would be beneficial to configure the behavior of tapping on the left and right sides of the page. Ideally, the option to turn the page solely by tapping the edge, without triggering page turns from the entire screen, would enhance the user experience.

I appreciate your consideration of this feature request, which would greatly improve the usability and versatility of calibre's Content Server. If further information is required, please let me know, and I will gladly provide it.

Revision history for this message
Kovid Goyal (kovid) wrote :

I doubt simply disabling swiping would allow you to use third party
extensions since they likely assume they have control of touch input,
which will interfere with the calibre viewer's assumption that it
controls touch input in many different ways. If you can confirm that
it would actually work I might be motivated to implement this. You can
test it by running calibre from source and making adding an early return
to the handle_gesture() function in iframe.pyj

See https://manual.calibre-ebook.com/develop.html for how to run calibre
from source.

Changed in calibre:
status: New → Incomplete
Revision history for this message
23452gdfg (fyudtyn53) wrote :

Sorry for the incomplete info, the extensions actually works and has no problem when using cursors.
The problem is when looking up words by touching the swipe action gets triggered after the finger is lifted, which is why i wish to disable all swipe actions on my tablet.

Here’s a clip demonstrating the problem, the lookups works but at the end of the lookup downswipe gets triggered.

Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: Incomplete → Fix Released
Revision history for this message
Nguyen Quoc Khanh (quockhanh77) wrote :

Now I can at least "select and hightlight" text on my Huawei Matepad Paper by defining "single tap to select" and "swipe to switch pages". It's not perfect, but it's something for me. Long-tap doesn't do anything in Calibre Viewer on this device (an on some other devices) (except for Firefox)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.