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
Hello, not sure if this is a bug or by design, so I am opening a discussion for it
I am using Swiper in Angular, and opted for my own navigation buttons, these buttons should be hidden if Swiper is locked (doesn't show its own navigation/pagination)
My initial solution was to listen to lock/unlock events, the problem is they only fire on state change, and not initial render
While searching, I found that a property isLocked is used internally, which actually solved my issue, nonetheless it's a hack that I prefer not using
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, not sure if this is a bug or by design, so I am opening a discussion for it
I am using Swiper in Angular, and opted for my own navigation buttons, these buttons should be hidden if Swiper is locked (doesn't show its own navigation/pagination)
My initial solution was to listen to
lock
/unlock
events, the problem is they only fire on state change, and not initial renderWhile searching, I found that a property
isLocked
is used internally, which actually solved my issue, nonetheless it's a hack that I prefer not usingSo to end my thesis: I think
swiper.isLocked
should be publicBeta Was this translation helpful? Give feedback.
All reactions