I would love to hear your thoughts on the Applet. Especially areas where I could improve it.
But right-clicking of pieces in now used to summon their move diagrams, which is something I frequently use, and badly miss on my tablet. Because touch-screen devices have no right-click.
I looked it up once for programming right-click touches on my Applet, and here's what I found.
Typically, a right-click on a mobile device is a long press, typically at least a half-second long. So you could use ontouchstart to execute a setTimeout(<show piece move>, 500), and then use ontouchend to execute clearTimeout() so that this does not interfere with the normal touches. I haven't tested this personally, but I think that is the best way to go about it.
Drawing circles and arrows also seems something that would be more relevant to a board editor tha for a diagram to play against.
I can see your point there, especially since the Interactive Diagram:
has board cells that fluctuate width based on how narrow the screen is
may not always have a reliable place for holding the arrow canvas
Fortunately the former is easily fixed by setting min-width, min-height, max-eidth, and max-height to sqrSize.
I would love to hear your thoughts on the Applet. Especially areas where I could improve it.
I looked it up once for programming right-click touches on my Applet, and here's what I found.
Typically, a right-click on a mobile device is a long press, typically at least a half-second long. So you could use ontouchstart to execute a setTimeout(<show piece move>, 500), and then use ontouchend to execute clearTimeout() so that this does not interfere with the normal touches. I haven't tested this personally, but I think that is the best way to go about it.
I can see your point there, especially since the Interactive Diagram:
Fortunately the former is easily fixed by setting min-width, min-height, max-eidth, and max-height to sqrSize.