web-components
web-components copied to clipboard
Autoscroll during drag-and-drop of a clause
Feature Request 🛍️
Drag-and-drop of clauses within a contract is of limited value, because the contract doesn't autoscroll when you get near the top or the bottom of the visible part of the contract.
Use Case
Create a long contract. Decide you'd like to move a clause from the beginning to the end of the contract.
Possible Solution
Some sort of autoscroll of the contract.
Hello @dselman I would like to work on this feature. Is this still open?
Hello @dselman I would like to work on this feature. Is this still open?
Hi @sanketshevkar As far as I can tell this is still open. You can test it on the storybook.
https://ap-web-components.netlify.app/?path=/story/contract-editor--contract-editor
I'll assign you. CC @irmerk
Ok cool. Thanks @jeromesimeon
Hi @dselman, I would like to work on this issue if it is still open
@sanketshevkar are you still working on this issue? If not, I will assign to @TC5022
@sanketshevkar are you working on it?
Sorry @TC5022 @Michael-Grover. Nope I'm not working on this issue.
@irmerk @Michael-Grover thank you for assigning me the issue. Is it possible to contact you regarding some doubts related to this?
Hi @TC5022 , if you have questions, you can put them in this issue
@Michael-Grover @irmerk I think the issue could be solved using the autoscroll-react package but according to their documentation, it uses a ref. So, I am thinking to add the useRef hook. Does it sound good to proceed?
@dselman @DianaLease
The changes I am making in the contract editor code aren't reflected in the storybook. Could you please guide me as to why this is happening? @dselman @DianaLease
Did you check the README? I think there are some notes there for what you need to do to rebuild.
Yes i resolved it, there was an issue with my system. Sorry for the trouble.
Please open a PR when you have something with autoscroll-react so we can review how that could work here.
Sure, I have almost worked up the code. Will open a PR as soon as I get it finalised
Hey Can I work on this or is this solved?