Skip to content

Activate slider for mobile only #757

Answered by malangfox
ottovw asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ottovw. I'm glad and happy you like our component.

Flicking does not support mobile detection separately, but you can enable/disable whether Flicking moves with user input depending on the width of the window.
I think you want Flicking to move by user input and panelsPerView to be 1 only on small screen widths.
This can be implemented using the beforeResize event. You can check out this demo.
This demo set the layout and behavior of Flicking by initial width of the screen and update them when screen size changes.

If you have additional questions, please feel free to leave a comment.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ottovw
Comment options

Answer selected by ottovw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
❓Question Asking question about @egjs/Flicking 🔖4.x v4.x~ related issue
2 participants