I am building a touch slider (green ghost rectangle) with an indicator (purple lines) for the direction of the movement. The slider changes the count while moving.
I did the draggable slider with the count with “drag” funciton. And the indicator for the direction with “scroll” function. You can see it some how in the attached file - but not working properly.
My aim is to create a touch slider with a draggable slider which changes the count, an indicator for directional changes and also hotspots on the rectangles to fake a sensitive touch.
I can create all three behaviors itself but can’t combine them.
Is there a way to connect something like “drag” with “scroll” function? Or has anyone another idea?
Find here the prd-files: https://www.dropbox.com/s/qm7y1el3rwjqs56/WIP.zip?dl=0
Screenshots/Sketch File/Principle file: (if applicable)