Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling Menu Activation for Interactive Elements on eInk Kobo! #99

Open
mrbbp opened this issue Aug 6, 2020 · 1 comment
Open

Disabling Menu Activation for Interactive Elements on eInk Kobo! #99

mrbbp opened this issue Aug 6, 2020 · 1 comment

Comments

@mrbbp
Copy link

mrbbp commented Aug 6, 2020

hello, i tried the code example 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 the script.
what's wrong?
Impossible to pass over the menu.

I'm looking for to generate page content when touch to change page...

An alert() don't works too (for debugging).

@mrbbp mrbbp changed the title Disabling Menu Activation for Interactive Elements on iInk Kobo! Disabling Menu Activation for Interactive Elements on eInk Kobo! Aug 6, 2020
@mrbbp
Copy link
Author

mrbbp commented Aug 6, 2020

i can provide an epub for testing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant