Overflow-x : scroll cuts left side of the component

Viewed 430

I want to have horizontally scrollable component when screen width don't let component to be displayed properly. When screen gets smaller I and component becomes scrollable I can scroll to right side and see full component, but when I scroll to left part of the component from left side is cut and cannot be displayed.

here is full component enter image description here

I can easily scroll to the right enter image description here

But not to the left enter image description here

This is how implementation looks like:

<div
                    style={{
                        overflow: 'hidden',
                        display: 'flex',
                        justifyContent: 'center',
                    }}
                >
                    <StyledWheelsPanelToolbarWrapper style={{ overflowX:'scroll'}}>
                        <StyledToggleButtonGroupWheelsMobile
                            value={alignment}
                            exclusive
                            onChange={handleAlignment}
                        > 
                            ....

enter code here
0 Answers
Related