-
Notifications
You must be signed in to change notification settings - Fork 532
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 scroll not working in CodePane #672
Comments
The same happens with iOS as well. But we are able to scroll horizontally when we try to scroll using the scroll bar. |
maybe in iOS dragging the scroll bar works.i wasn't sure about this that's why i only wrote Android. |
I found why this problem occurs and it is because of the drawer. Specifically because of line 42 from this file : splitview_drawer.dart The issue occurred because This prevented horizontal scrolling from working properly. |
Nice find! I knew this unexpected behaviour is caused due to drawer because when trying to drag the scrollbar the drawer was opening.. bht not why and where |
@DenserMeerkat Please review this issue and the associated PRs. Thanks |
I would like to point out that when the drawerEdgeDragWidth is set to 0, everything functions as expected. I wanted to raise a PR but i thought it will be better to discuss first |
Limiting the drawerEdgeDragWidth to fraction of viewport or to an absolute value is a valid solution and makes the horizontal scrollbar work. But also think about how you can solve the issue of horizontal drag scrolling not working for regions not having text. (Eg: cURL codegen) Hint: The SingleChildScrollView(
...
child: SingleChildScrollView(
...
child: Column(
...
),
),
) |
Hey
Hey @badnikhil , the SizedBox approach might work for your specific screen size and content length, but it introduces layout fragility that will break in other cases. |
Describe the bug/problem
horizontal scroll isn't working in Code section. there is a scroll bar but it aint working
I think there is something to do with the drawer..
Steps to Reproduce the bug/problem
1.Paste any URL
2. Open the Code section
3. try scrolling horizontally
Expected behavior
It should scroll horizontally too ..
Device Info (The device where you encountered this issue)
Screencast.from.2025-03-17.23-31-20.webm
The text was updated successfully, but these errors were encountered: