-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to use "check point" events? #18
Comments
Hello 👋 I'm happy that you like this library. If for example you will have the parameters in function
What if you will store each mouse move position in localstate of component and only store final position when drag ends? It will be possible to implement? |
hi @polemius,
Yes, it is probably the easiest and performant solution, but it works only if other components don't have to be aware of my draggable component temporary position.
I think that "filter events/exclude events" params would bring much more flexibility, however, I've made my own solution to handle my needs already. Thank you for the quick response, the issue may be closed now. |
Hello,
Thank you for amazing library.
I'm wondering, is there a way to add new history record only after specific event is dispatched?
For example, I'm dragging some element and update its position on each mouse move, however, I don't want all those position to appear in history. Instead I want to commit only after "drag end", so I have only final positions in history.
P.S. After typing this message, I reviewed the source code and found out that history records are created on "@Changed" event unless the updates are filtered.
Would you consider to extend the library?
Thanks
The text was updated successfully, but these errors were encountered: