Closed Maidomax closed 10 years ago
What were the consecutive clicks?
For instance if I have links on the right side of the screen, and they stay on the screen at all times (with "position: fixed"), and the rest of the page scrolls, and I have an element 600px down the page, if I have a link <a href="" scroll-to="#element">Go to element</a>
, and I click it, the page will scroll down 0 + 600 - 0 pixels from the top, which is what I want. If I click it again, it will scroll down to 600 + 600 - 0 pixels from the top, which I don't want. If I click i t again, it will scroll down 1200 + 600 + 0 pixels. The current scroll offset shouldn't be factored in, as it doesn't matter. You just want to scroll down to the position of the element, minus the custom offset if provided through the attribute on the link element.
Thanks for the patch! Published and tagged.
...secutive clicks
As discussed in issue #2