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
There is not much one can do within onChange and onChangeEnd callbacks with only next and current indexes provided.
Just for my case I need to dynamically change the style attributes on the slides in addition to prop management the simple-slider provides. It is again just a tiny fix allowing for much wider customization.
This would only require the following change starting line 145:
if (onChange) {
onChange(actualIndex, nextIndex(), containerElem, imgs);
}
And the similar for onChangeEnd on line 210.
The text was updated successfully, but these errors were encountered:
There is not much one can do within
onChange
andonChangeEnd
callbacks with only next and current indexes provided.Just for my case I need to dynamically change the
style
attributes on the slides in addition toprop
management thesimple-slider
provides. It is again just a tiny fix allowing for much wider customization.This would only require the following change starting line 145:
And the similar for
onChangeEnd
on line 210.The text was updated successfully, but these errors were encountered: