tal icon indicating copy to clipboard operation
tal copied to clipboard

ammend the navigation behaviour in the carousel component

Open pawelgliwinski opened this issue 6 years ago • 1 comments

Hi,

I would like to achieve to amend the carousel navigation behaviour. Assume I have 15 elements but only 8 of those are visible within the mask. The focus is located on the far left of the mask. While pressing right button I would like the focus first move to the right and when it reaches the right border of the mask the content underneath should start moving left. Could you suggest on how this could be achieved ?

pawelgliwinski avatar Oct 30 '18 11:10 pawelgliwinski

I have a listener on the beforealign event. In the callback I re-calculate the alignment point based on the intended tile index, in your case 0-7, then I make a call to setNormalisedAlignPoint(newNormalisedAlignmentPoint). However, I am having an issue with the position accuracy of the widgetstrip element. There is a 0.333px discrepancy between my calculation and TAL's during the scrolling process, resulting in a 'shuddering' of the carousel.

rafcourt avatar Nov 05 '18 12:11 rafcourt

We have deprecated this project and there are no plans for active development going forward.

Please see the deprecation notice.

kukulaka avatar Jan 04 '23 17:01 kukulaka