-
Notifications
You must be signed in to change notification settings - Fork 53
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
Mobile/Touch Support #4
Comments
ETA? |
I can push it out this weekend maybe. It's coded, just been busy. |
can you please push touch updates for this plugin. |
So just to keep everyone updated: I have been working on this. I thought I had a quick fix, but it turns out it wasn't viable. I think I am close to a solution using react-draggable but it's not there yet. Of course, if anyone wants to try tackling this, I am more than open to pull requests. |
@hew I’m working locally on a fork and I got it working with Draggable. But… It’s weird. I wrap everything in Draggable, set it to only drag horizontally, then set the first child transform CSS to I think this approach is fine because we need a way to not actually drag UI, but let React Motion handle the movement, so the “ghost” UI makes sense. Some possible Issues with this approach:
Performance wise this works perfectly for me. It’s very smooth and looks nice. |
@hew @zachgibson I am curious if any1 minds providing example code 4 how 2 implement this? Thanks from a fan :) |
If somebody could provide implementation will be great |
can we see this in action please |
A quick and dirty solution to allow scrolling via touch devices is to use the following SCSS/less style: @media (hover: none), (pointer:coarse), (-moz-touch-enabled: 1) {
.scroll-horizontal {
overflow: scroll !important;
overflow: overlay !important;
overflow-x: scroll !important;
overflow-x: overlay !important;
overflow-y: hidden !important;
-ms-overflow-style: none !important;
scrollbar-width: none !important;
&>div {
transform: none !important;
position: relative;
}
&::-webkit-scrollbar {
display: none !important;
}
}
} |
Hello, How can I use touch/mobile support? |
Interesting! Thanks for sharing. |
+1 following for any further developments |
Coming in the next update.
The text was updated successfully, but these errors were encountered: