fortesinformatica / Sideshow

Sideshow is a powerful javascript library which aims to reduce your user's learning curve by providing a way to create step-by-step interactive tours. Explain the features of your application, control your end-user's interaction with your UI, emphasize what you're explaining in each step by masking it. Just think! The sky is the limit!
http://fortesinformatica.github.io/Sideshow
Apache License 2.0
86 stars 31 forks source link

Scroll for inner elements #24

Open pjparra opened 8 years ago

pjparra commented 8 years ago

Only the html and body elements are scrolled if necessary.

I would like it to be able to scroll any Subject parent element (I have a 100% height div with scrollable content). I made it work by replacing:

$("body,html").animate({ by: $("body,html").add(Subject.obj.parents()).animate({

on line 1721 in distr/sideshow.js

Is there any reason this is not already done? If not, I might fork and make a pull request.