jgallen23 / toc

Table of Contents Plugin
http://projects.jga.me/toc/
MIT License
531 stars 111 forks source link

Feature Request: Plugable scroll behavior #3

Closed dvberkel closed 10 years ago

dvberkel commented 12 years ago

This is in similar vein to my first comment on issue #2.

It would be great if the scroll behavior could be plugged as an option.

jgallen23 commented 12 years ago

Can you give me an example use case where you would need this?

A simple solution is I could make it so there is a callback on click and then disable scrolling via options.

dvberkel commented 12 years ago

@jgallen23 I want to integrate toc with deck.js extended deck-hash. You can see a work in progress here.

The assumptions that toc makes are not valid in conjunction with the assumptions deck.js has. When it is possible to override the default click behavior the two could work together.

jgallen23 commented 10 years ago

fixed in #34