1) Add button to top of the tiddly (near the close button)
2) On click of this button, calculate the scrolling required from top to bottom of the chosen tiddly
3) Execute the scrolling action with appropriate speed.
<$button tooltip="Set focus on this tiddler" to=<<nammedTiddler>> class="tc-btn-invisible">
{{$:/PSaT/focus-tiddler/image/unfocused-button}}
</$button>
if I understood your needs I could give a better answer.
On Tuesday, July 7, 2020 at 11:37:23 PM UTC+10, Adithya B M wrote:
I have been using TW as a songs database for some time. I want to add Autoscroll functionality to individual tiddlers...... 3) Execute the scrolling action with appropriate speed.
I am currently stuck at how to "do" something when the toolbar button is clicked. Are there any tutorials about this?
The tiddler is longer than one viewport.I am currently stuck at how to "do" something when the toolbar button is clicked. Are there any tutorials about this?
- Launches the Autoscroll Tiddler
- Prepopulates the tiddler to be scrolled
- Maybe use a field value from the original tiddler to populate the duration field.
- The Autoscroll tiddler can continue to have a pause,stop and reset buttons
Eric, This is beautiful. It solves the problem!
This would be my wishlist: Would this scenario be hard to pull off?1) There is an autoscroll button on the toolbar on each tiddler
2) On clicking, the button fires an actionwidget? which:
- Launches the Autoscroll Tiddler
- Prepopulates the tiddler to be scrolled
- Maybe use a field value from the original tiddler to populate the duration field.
- The Autoscroll tiddler can continue to have a pause,stop and reset buttons
Eric,Not something I am after right now but this is impressive. I wonder if there is a way to get a smoother scroll?
- I can see tiddlywiki being used as a tele prompter or prompter
- A recent plugin that allows inline audio would help with scripts and live audio insertion.
- I have another idea that if we could play a video or audio podcast with the position in time being able to trigger an action such as at 3:10 seconds trigger a pause, or display a message. Alternatively click at time x, pause and allow the user to take a note that will appear, at that time in the future, when replayed. Without going into the detail it could allow a killer application.
first this is a wonderful tool, especially with the extensions you added.
One firefox exclusive bug: When using the toolbar the text keeps its transformed position when pressing pause then stop.I don't think it would really need solving since start then stop resets it, just thought to let you know.
transform:translateY(0px); transition:transform 0s
sorry have to say the bug still persists.
I would assume firefox does something differently in the back compared to chrome, but I currently can't think of what seeing how start to stop works, but pause to stop does not.
enjoy,-e
Like the new look with the images and the added functionality.
Thanks for all the work. Superb stuff!
Some feedback:1) In the latest version, the width of the content in autoscroll tiddlers is reduced in my TW (is it because of the new "scrollContent"/"scrollframe" container?). I see its not the case in your demo TW. I wonder why...2) Also, could we do without adding a white background to the autoscroll tiddlers? I have a black themed TW, so i generally remove it manually.
border:1px solid; padding:1em; background:#ffe;
If I can get a nice example that starts a recording and scrolling set-up to start simultaneously I'll post it. I haven't quite figured out how to do that yet.Just FYI the Martin Luther King "I have a dream" speech I was playing with for text using TW Sountcite plugin for playing this on-line .mp3.
\define start()
<$action-setfield $tiddler="$:/temp/autoscroll/stylesheet" tags="$:/tags/Stylesheet" pause="false" text="""
[data-tiddler-title="$(currentTiddler)$"] .scrollFrame { $(framestyles)$;height:50vh;overflow:hidden; }
[data-tiddler-title="$(currentTiddler)$"] .scrollContent { transform:translateY(-100%); transition:transform $(scrolltime)$s linear; }
"""/>
\end
<$tiddler tiddler="..."><$vars scrolltime="...">
<$importvariables "TiddlyTools/AutoScroll/Toolbar"><<start>>
</$importvariables></$vars></$tiddler>
Please check out http://adithyab.tiddlyspot.com/The issue with the width of the content is still persisting. Could you suggest what to do about it?
1) Making the whole tiddler a button to start the scrolling doest work for me. Most of the time, I end up starting the autoscroll accidentally. Also, it doesnt let me select and copy text. Having the toolbar is good enough for me.
2) vertical height could also be configurable. I am using 80vh and it works for me.
3) This doesnt play well with the stroll plugin - the back-references from stroll end up on top of the tiddler content for all the 'autoscroll' tiddlers. Could this be fixed?
so took finally another look and while I can't say which update did it, I can say that it now also works in firefox without problems.