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

Can also use data-href on wheel button. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wlzch
Copy link

@wlzch wlzch commented Jan 18, 2014

The example usecase is when I want to use another element for the wheel button (ex: button element). The quite annoying thing with the limitation of only using "a" element is because of the "jump effect" .

When "a" element is clicked the viewport will jump to the top because it doesn't find any element with id same as the href fragment. And to solve this issue I use button element as the replacement.

@zhanghaowx
Copy link

I prefer totally change href => data-href. Otherwise I have to preventDefaultEvent() on click events to make this plugins work with other plugins like fullPage.js

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

Successfully merging this pull request may close these issues.

2 participants