Structure of scroller-init.js #27
Replies: 5 comments 7 replies
-
closeread/_extensions/closeread/scroller-init.js Lines 47 to 48 in 85b9d78 Is there a reason why I'm only four chapters into the Eloquent JavaScript book, so please forgive any silly questions. 🤪 |
Beta Was this translation helpful? Give feedback.
-
closeread/_extensions/closeread/scroller-init.js Lines 124 to 128 in 85b9d78 Am I correct that since I guess this is necessary, too, since even if the sticky item were given |
Beta Was this translation helpful? Give feedback.
-
closeread/_extensions/closeread/scroller-init.js Lines 181 to 183 in 85b9d78 Might we want to want to have this be the default function applied to any sticky object that overflows the current sticky container? If you take a look at this nytimes close read example, images get resized if either the horizontal or vertical dimension of the image is greater than the corresponding dimension on the container. As I think through our block types - code, code output, poems, images - it seems like the default behavior that we'd want for all of these. We could allow the user to escape this behavior by adding the We could think of the main body of
|
Beta Was this translation helpful? Give feedback.
-
Apologies for the slow answers! I go a little waylaid by another package this weekend. Glad you're getting eyes on this code; it's already slipping away from me 😅 |
Beta Was this translation helpful? Give feedback.
-
closeread/_extensions/closeread/scroller-init.js Lines 27 to 28 in 85b9d78 An unexpected consequence of initializing Is there some advantage to intializing at |
Beta Was this translation helpful? Give feedback.
-
Hey @jimjam-slam , I've been going through
scroller-init.js
with the goals of a) understanding more of it now that I'm getting a sense of how JavaScript works and b) thinking for any opportunities to refactor in light of our discussions on how steps can trigger either transition or focus effect. I've been running into some specific questions about implementation that I figured would be easiest to ask here in the Discussions area.Beta Was this translation helpful? Give feedback.
All reactions