Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Add ability to disable interactions #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hiddentao
Copy link

I needed the ability to disable interactions so I added a prop for this.

I'm working on a browser - it has a coverflow mode (for switching tabs) and a non-coverflow mode (for viewing the active tab). In the latter mode I needed to stop the user from being able to change tabs via swipes or press the tab (since that doesn't make sense in this mode anyway).

This prop enables me to do this without having to render two different component subtrees (thus causing the tabs to re-mounted everytime modes are switched).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant