-
Notifications
You must be signed in to change notification settings - Fork 96
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
onDragEvent vertical scrolling #174
Comments
Something like:
Is this what you want? I'm working on improving the overall drag and drop, fixing bugs and making it smoother. I'll try to consider this as well |
If one person changes their event from 6 pm to 6 am then how it will scroll the screen to drag and drop events directly? |
can you show me the code from where you false the scroll? |
@Salmankhan033 I think I'm not understanding correctly.
In our code we do not disable the vertical or horizontal scrolling while an event is being dragged. The behavior is a result of how Views work.
|
Yes, I want such a type of scrolling when dragging the event. |
Cannot be done with the current code, AFAIK. |
@pdpino Any update on this feature |
@TheTushar2696 I'm not currently working on this |
Hi @pdpino |
I have done it
|
Hi, |
onEventLongPress={(_event) => { setEditableEvent(_event) }
|
@Salmankhan033 Not sure how is this working, sorry to bother you but can you please share a working code snippet, Thanks in advance |
Yes sure.I can send you the code. |
@TheTushar2696 yes. The main delay is that after some quick research I still do not know how to implement it (though it should be possible with react-native-gesture-handler) |
Update: I've been working on this. Have not been able to fully solve it, but I have this minimal example for now: update-2022-07-12_10.45.16.mp4(mainly using react-native-reanimated) |
@pdpino , Thanks for the update, please lmk if there is any progress or you need any kind of help |
any progress ? @pdpino |
@SwikarBhattarai I'm stuck with this feature, any help is appreciated I have a solution like the comment above:
We want something more natural, like the example from google calendar above:
|
@pdpino can you share me your solution. |
@SwikarBhattarai or anyone else, lmk if you have any code or ideas on how to solve this with react-native-reanimated v2 (e.g. maybe other app that solves a similar problem) |
@pdpino can you share me your current solution because its impossible to drag and drop from 6am to 6pm like situations. |
@SwikarBhattarai do you want it for deployment? I'd have to clean some stuff and send a PR If you want to develop, check this branch: https://github.com/pdpino/react-native-week-view/tree/feature/wip/174-drag-and-scroll
|
Here is a video of the current solution in branch https://github.com/pdpino/react-native-week-view/tree/feature/wip/174-drag-and-scroll: update-wv-2022-08-25_09.51.13.mp4 |
@pdpino thats great. When are you pushing these?? |
@SwikarBhattarai before releasing, I think we want a more natural interaction, like the google calendar example I'm stuck with this right now, help is appreciated. |
@pdpino share the repo link i will try |
@SwikarBhattarai this branch in my fork: https://github.com/pdpino/react-native-week-view/tree/feature/wip/174-drag-and-scroll, the drag-scroll code is in |
@pdpino did you push recent changes to the branch?? when we drag its crashing in ios simulator |
@SwikarBhattarai The branch If you provide details of the crash maybe I can help |
@pdpino Any update on this feature? |
Sorry, no updates yet. Will get back to this feature and vertical-pinch after current PRs are resolved |
When I drag the event then the vertical/horizontal scrolling not working.
How to enable vertical scrolling when dragging or dropping events?
The text was updated successfully, but these errors were encountered: