-
Notifications
You must be signed in to change notification settings - Fork 13
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
Horizontal scrolling #45
Comments
You have already completed a good first issue, so we will assign you this one. |
@panglesd @Julow, I hope you're doing well. I've been reviewing the code related to issue #36, which focuses on vertical scrolling, and I have a question about expanding this functionality to include horizontal scrolling. 1.I noticed that we have a vscroll_area function for vertical scrolling, but I couldn't find a corresponding function for horizontal scrolling. Is there a reason why a similar function for horizontal scrolling is not available? Could you provide some insights or considerations regarding the implementation of a horizontal scroll area? Your insights on how to integrate horizontal scrolling would be greatly appreciated. Thank you for your time and assistance. |
You did well to ask for assistance, this issue is not very easy to start! I can answer with more details later, but here is a brief first message. Come back for more guidance if you are blocked again! Indeed, there is no |
Hi @panglesd @Julow , I've encountered an issue that I'm having difficulty resolving.
I'm unsure how to adjust my implementation to align with the expected type.
Here's the issue I'm facing: Unescape module in the Nottui library, which relies on the Notty library for mouse handling functionalities. However, I've encountered a compatibility issue that I'm struggling to resolve). The Unescape module defines a type button that represents various mouse buttons, including scrolling directions (Up and Down). However, I need to extend this type to include left and right scrolling directions (Left and Right). The original definition of button is as follows:
I would like to modify it to include left and right scrolling directions -
@panglesd and @Julow, Could you please provide guidance on how to make this modification to the Unescape module? I'm unsure about the appropriate steps to take and how to ensure compatibility with other parts of the codebase. I've tried my best to explain the situation, but if there are any shortcomings in my explanation, I apologize. Your guidance and expertise in this matter would be greatly appreciated |
Hi! Sorry for the slow reply. Keyboard horizontal scrolling would be a good start. |
@Julow , Thank you for providing these suggestions. I'll start working on implementing keyboard horizontal scrolling. I'll keep you updated on my progress. |
@Julow, I'd like to get your input on the approach I'm considering. My plan involves adjusting the scroll_state type to include additional fields such as x_position, x_bound, and x_visible. With these additions, users would be able to navigate horizontally within the vscroll_area using keyboard input. |
Hello @maha-sachin ! Your approach would definitely work to have a single scroll state for both horizontal and vertical scrolling. However, there are some issues with this approach:
My suggestion would be to start by implementing |
okay, thanks. I will do |
Vertical scrolling was added in #36, but long lines overflows and the content at the end is not visible.
This intermediate issue is about adding the ability to scroll horizontally.
When assigned this issue, do not hesitate to ask for more information, or help if you are blocked!
The text was updated successfully, but these errors were encountered: