You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the react-spring-bottom-sheet library in my project. Recently, I introduced a 'full' size in addition to 'middle' and 'small' sizes in snapPointList.
The component of the bottom sheet in the 'middle' size originally had horizontally scrollable elements. However, with the introduction of 'full' size, vertical size changes are prioritized, and horizontal scrolling does not work.
importReact,{useCallback}from'react';constDetailComponent=({ items })=>{constonClickItem=useCallback((e: React.MouseEvent,item)=>{e.preventDefault();},[]);return(<div>{/* This component's onClick event works as expected */}<divonClick={onClickItem}><div>Title</div><div>Company name</div></div>{/* This list of items is expected to be horizontally scrollable, but when a full-size snap point is introduced, the horizontal scroll stops working */}<div>{items.map(file=>(<divkey={file.id}><ahref={`${file.url}#view=Fit`}target="_blank"rel="noreferrer"onClick={(e)=>onClickItem(e,file)}><div><imgalt={file.filename}src={file.url}/></div><div>{file.filename}</div></a></div>))}</div></div>)}exportdefaultDetailComponent;
For clarity and to maintain privacy, I've generalized the code above and masked specific details.
Expected behavior
I would expect the horizontal scroll to function correctly regardless of the vertical size change in the bottom sheet.
Actual behavior
Horizontal scrolling is not working when the 'full' size is introduced. Vertical size changes are prioritized over horizontal scrolling.
Additional context
Any suggestions on how to solve this issue are highly appreciated.
The text was updated successfully, but these errors were encountered:
I'm using the react-spring-bottom-sheet library in my project. Recently, I introduced a 'full' size in addition to 'middle' and 'small' sizes in snapPointList.
The component of the bottom sheet in the 'middle' size originally had horizontally scrollable elements. However, with the introduction of 'full' size, vertical size changes are prioritized, and horizontal scrolling does not work.
Here is a simplified version of my code:
For clarity and to maintain privacy, I've generalized the code above and masked specific details.
Expected behavior
I would expect the horizontal scroll to function correctly regardless of the vertical size change in the bottom sheet.
Actual behavior
Horizontal scrolling is not working when the 'full' size is introduced. Vertical size changes are prioritized over horizontal scrolling.
Additional context
Any suggestions on how to solve this issue are highly appreciated.
The text was updated successfully, but these errors were encountered: