Avoid scroll to center when scrollable is true
See original GitHub issueIs there any proper way to prevent the selected date scroll to the center when the scrollable
is true?
I trying to achieve a “scroll to snap” effect with both scrollable
& scrollerPaging
, however, when I select a date, it will scroll till the date align to the center.
So far I only manage to do that by disabling the scrollToDate(...)
call in the source code.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (3 by maintainers)
Top Results From Across the Web
How to prevent scrollbar from repositioning web page?
Press the "Toggle height" to see the content shift. In this way content will never shift. The "problem" with this solution is that...
Read more >How to Hide the Scrollbar in CSS - HubSpot Blog
To prevent scrolling with this property, just apply the rule overflow: hidden to the body (for the entire page) or a container element....
Read more >scroll-snap-stop - CSS: Cascading Style Sheets | MDN
The scroll-snap-stop CSS property defines whether or not the scroll container is allowed to "pass over" possible snap positions.
Read more >How to disable scrolling in HTML? - CodeBerry
You can hide the scroll bar using the overflow:hidden statement: ... In such cases, a scroll bar will appear on the right side,...
Read more >Scroll an element into the center of the viewport - Hidde's blog
If you pass true (default), the browser will scroll so that the element is at the top of your viewport or other scrollable...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
From what I understand about the
scrollerPaging
, it supposes to always snap to a week, and the week start & end are defined by thestartingDate
. So ideally, if we enabledscrollerPaging
, instead of positioning the selected date to center, it should always fix the position to the selected week.Just checking in - did anyone happen to make any progress with this one?