spark-scroll icon indicating copy to clipboard operation
spark-scroll copied to clipboard

Scrolling inside a div with body fixed to 100% height of window

Open rossanthony opened this issue 9 years ago • 2 comments

I'm working on a site which contains a fixed div, within which there is a long scrolling div containing content. Is it possible to configure spark-scroll to use a specific div by id, which it then uses as the reference for the scroll offset?

rossanthony avatar Feb 20 '16 12:02 rossanthony

@rossanthony, if you solved your problem, what was the solution? I've been reviewing the source code for this and my intended use case matches yours.

If you didn't solve it, I've been reading through the source to see how to make that possible, and I think it might be as simple as passing a reference for the directive to know which element to attach the scroll listener to.

theaccordance avatar Nov 21 '16 17:11 theaccordance

@theaccordance - I ended up restructuring the page so that the scrolling div was no longer inside a fixed one. The design requirements I was working to called for a fixed outer frame with a bg image and I found a way to mimic this effect through other means, see: https://acknowledgement.uk/.

rossanthony avatar Nov 21 '16 21:11 rossanthony