Skip to content

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

Open
wlzch wants to merge 1 commit into
peachananr:masterfrom
wlzch:master
Open

Can also use data-href on wheel button.#4
wlzch wants to merge 1 commit into
peachananr:masterfrom
wlzch:master

Conversation

@wlzch

@wlzch wlzch commented Jan 18, 2014

Copy link
Copy Markdown

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
Copy Markdown

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