touch event does not work on eink kobo?
mrbbp opened this issue · comments
hello, i tried your code exemple to catch touchevent on my kobo aura (N514) with 4.20.14622 and kepub extension
document.querySelector("main").addEventListener('click', handleClick, false);
document.querySelector("main").addEventListener('touchstart', handleTouch, false);
function handleClick(event) {
event.preventDefault();
}
function handleTouch(event) {
exampleElement.style.background="red";
event.preventDefault();
}
}
but the main menu interact over my script.
what's wrong?
oh and alert()
don't too (for debugging).
nobody answer?
Any idea?
is it the good place for asking an upgrade?
é.
The spec states:
Kobo’s eInk and Desktop platforms have limited support for JavaScript, and do not support interactive JavaScript elements.
Also, your code isn't complete: How is the main element used in your markup? Where is exampleElement defined? Extra trailing }
Instead of alert or console.log you can append nodes or set innerHTML of an element.