You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to change the peek-left and the peek-right value after swiping to the next image, but after changing the peek values the calculation of the transform: translateX() value is wrong. Is there a way to change the peek values on the fly?
I start with peek-left: 0 and peek-right: 15%, after the first change I want both to be 15%, so that the 2nd image is centred. when we reach the last image, peek-left should be 15% and peek-right 0
best regard
The text was updated successfully, but these errors were encountered:
If you ran capturePeekingMeasurements() after changing those values, I think it should force the translateX() to update. Like if you did $refs.slider.capturePeekingMeasurements() from your code.
I may add a watcher to the peekLeft and peekRight props to calls this automatically if those values change...
Hi,
i want to change the
peek-left
and thepeek-right
value after swiping to the next image, but after changing the peek values the calculation of thetransform: translateX()
value is wrong. Is there a way to change the peek values on the fly?I start with
peek-left: 0
andpeek-right: 15%
, after the first change I want both to be15%
, so that the 2nd image is centred. when we reach the last image, peek-left should be15%
andpeek-right 0
best regard
The text was updated successfully, but these errors were encountered: