krassowski / Anki-TouchScreen

Touchscreen functionality for Anki
https://ankiweb.net/shared/info/1631622775
GNU General Public License v3.0
25 stars 13 forks source link

Canvas blocks button interaction #7

Open JMan-Zx opened 5 years ago

JMan-Zx commented 5 years ago

The main canvas is currently covering the entire screen, so hint buttons cannot be interacted with. A hack is to just change the top of the canvas so that it leaves some room on the top, but that may not work depending the size of the notecard. Is a more permanent workaround possible?

KIMYONGUP commented 5 years ago

i hope this problem must be dealt with!!!!

krassowski commented 5 years ago

What are hint buttons? I have not heard of it before. Would you mind to elaborate/give an example (ideally with a screenshot) please?

Yes, there is a potential solution of bumping z-index of such buttons.

cookiemon commented 5 years ago

Anki has support for several input methods. Hints is just one of them. I used type (explanation video) extensively a while back which has the same problem.

My hack was to disable the canvas and let inputs through while drawing is disabled. Worked well enough for me and works for all kinds of input.

Example of type input:

type

Example of hint input:

hint-preclick

after clicking

hint-postclick
LeoWang2007 commented 1 year ago

The main canvas is currently covering the entire screen, so hint buttons cannot be interacted with. A hack is to just change the top of the canvas so that it leaves some room on the top, but that may not work depending the size of the notecard. Is a more permanent workaround possible?

Now is 2023. But if you still have this problem you can try this: https://ankiweb.net/shared/info/567651868