Again, thank you! This now works, albeit only on "vanilla" tiddlers, not on tiddlers affected by my view templates. I'll need to investigate further to see if it's my CSS that could be affecting the scrolling (margins, transforms etc.) or if it's the view template "mechanism" itself that could be invalidating the scrolling mechanism (well, I hope it's not the latter).
Regards, Hubert On Wednesday, 20 January 2021 at 12:50:59 UTC [email protected] wrote: > try selector=".bottom" and not $selector. > > On Wednesday, January 20, 2021 at 12:39:55 PM UTC+1 Hubert wrote: > >> Hi, >> >> Since 5.1.23, we've had the ability to scroll onto a section within a >> long tiddler using the extended tm-scroll widget message >> <https://tiddlywiki.com/#WidgetMessage%3A%20tm-scroll> by specifying the >> scroll target as a CSS class of the target element. >> >> I've tried this both within the <$scrollable/> widget and without using >> it but couldn't get it to work in either case. I keep getting the red JS >> error message ("element undefined"). >> >> Here's my code: >> >> <$button actions="""<$action-sendmessage $message="tm-scroll" >> $selector=".bottom"/>"""> >> Scroll >> </$button> >> >> Then there's several paragraphs of the lorem ipsum text with the bottom >> part wrapped in a div with the class "bottom", i.e.: >> >> {{Lorem Ipsum}} >> <div class="bottom"> >> {{Lorem Ipsum}} >> </div> >> >> When clicking the above button to scroll, I always get the same JS error >> message. What have I missed? >> >> Thanks for your help. >> Hubert >> >> [image: js_error.png] >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c7a8e29c-0859-4c2a-9a50-1e14f6465536n%40googlegroups.com.

