Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not swiping in my react app #118

Closed
AnitaJosic opened this issue Jan 24, 2019 · 8 comments
Closed

Not swiping in my react app #118

AnitaJosic opened this issue Jan 24, 2019 · 8 comments

Comments

@AnitaJosic
Copy link

AnitaJosic commented Jan 24, 2019

Hi.
I have included the carousel to my react App.js that contains further js ./component/ classes inside its div elements.
For example my "Post.js" in
<carousel axis={this.state.axis} widgets={ [ Other, Post, ..] } className="custom-class">
<p style={{backgroundColor: 'royalblue', height: '100%'}}>
<Post />
</p>

The app is loading all the content i have imported and added into the divs in a sequence (no errors), so it's all loaded and visible on one page - but without swiping at all - one js content under the other.

Did I miss a thing? Do I have to enable anything in css (like I have to enable dragable in html5?) or in my browser or do I need to use frames instead of divs or whatever?

Thanks and best regards,
Nini

@amio
Copy link
Owner

amio commented Jan 25, 2019

Is it only one frame?

@AnitaJosic
Copy link
Author

AnitaJosic commented Jan 25, 2019 via email

@amio
Copy link
Owner

amio commented Jan 25, 2019

Could you provide an example like codesandbox for reproducing this issue?

@AnitaJosic
Copy link
Author

AnitaJosic commented Jan 25, 2019

I don't know how to include such codeframes properly but here is the App.js.
https://codesandbox.io/s/my0r327rzy

I did not provide the importet components from /components/ location since there are no errors. Hopefully this App.js is enough.
Otherwise, could you please just tell me what could possibly went wrong?

@amio
Copy link
Owner

amio commented Jan 26, 2019

@AnitaJosic You can start by fiddling this https://codesandbox.io/s/q76q4k8woq

@AnitaJosic
Copy link
Author

Found the missing part: enableMouseEvents

@lluisrojass
Copy link
Contributor

This can be closed then?

@amio
Copy link
Owner

amio commented Mar 20, 2019

Yep, thanks for reminder!

@amio amio closed this as completed Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants