Ok.
The main changes are how the drag works.
Here is the one with the transition fix. ( which was annoyingly simple to fix )
We only have scenes. (No duplicates of scenes on each scene)
Each scene’s elements are in a group.
The group has a drag action on it.
The drag action runs a function to set the hypeDocument.customData.actionElement value to 'dragToScene’
( When the slider functions run, they check for this value to see if we are dragging or using the back button. )
The drag action also controls the scenes timeline named drag.
The drag timeline has two timeline actions.
The first timeline action. is placed at 0s
The second timeline action. is placed at 2s
On scene load each scene will be told to go to 1s in timeline drag . ( i.e in the middle of the timeline actions)
scene 1’s timeline actions. are set to.
The first timeline action . = 'pause timeline drag
This stops any drags to the left activating scene change.
The second timeline action. = next scene push right to left
scenes 2’s timeline actions. are set to.
The first timeline action . = next scene push left to right
The second timeline action. = next scene push right to left
scenes 3’s timeline actions. are set to.
The first timeline action. = go to next scene push left to right
The secondtimeline action . = 'pause timeline drag
This stops any drags to the right activating scene change.
All of the timeline actions. that push to scene also run the previous/next scenes slider code.
That one small bit fixes the transition issue. As it sets up the scene as before transitions.
I ams sure I knew this and forgot we could do this and just re figured it out… as I said annoying.
I vaguely remember that this should not work?.
( I actually made a symbol version that was not really needed in the end. )
global_variables_for_sliders_MHv4.hypetemplate.zip (72.4 KB)