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

Goto Doesn't Work in "onclick" #463

Closed
rtuider opened this issue Mar 4, 2015 · 2 comments
Closed

Goto Doesn't Work in "onclick" #463

rtuider opened this issue Mar 4, 2015 · 2 comments

Comments

@rtuider
Copy link

rtuider commented Mar 4, 2015

Hi there,

in my index.html I store the impress instance via:
myImpress = impress();
myImpress.init(jQuery);

If there is a link like this:
Just some text
nothing happens when I click on it.

But if I use the same code of the "onlick" impress navigates to the corresponding slide.

Kind Regards
Ruben

@rtuider
Copy link
Author

rtuider commented Mar 4, 2015

Edit:

I found out that when clicking on the link goto inside impress.js is called more than once.
The first call is via the goto-statement and the slide changes as well. But if continuing debugging the click-handler of impress.js takes effect and calls goto again with the old slide as target.

Is there any way to interrupt the second click event?

@rtuider
Copy link
Author

rtuider commented Mar 4, 2015

I had to implemend an own eventhandler and provide the event-object. Then I do "preventDefault" and "stopPropagation"

@rtuider rtuider closed this as completed Mar 4, 2015
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