v14.0.0-beta.1 #543
MurhafSousli
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Is there any way to disable |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The core package has been written from scratch ✨
updating scroll thumb position is done via native CSS which means the calculation is done on the browser background worker.
mouseevents withpointerevents.cdkVirtualScrollViewportdirective to the util package.matSelectViewportdirective to the util package, closes #537.scrollTimelinePolyfilloption to change the path of scroll timeline polyfill.throttleTimeinstead ofdebounceTimein case resize sensor needed to be throttled.Reached events package has been written from scratch ✨
IntersectionObserverinstead of the scroll event to detect when scroll is reached.reachedTopOffsetreachedBottomOffsetreachedStartOffsetandreachedEndOffsetin addition toreachedOffsetinput.--reached-offset,--reached-offset-top,--reached-offset-bottom,--reached-offset-startand--reached-offset-end.Breaking changes
Options renamed:
sensorDisabledhas been renamed todisableSensorsensorDebouncehas been renamed tosensorThrottleTimepointerEventsDisabledhas been renamed todisableInteractiontrackClickScrollDurationhas been renamed totrackClickDuration(updated)has been renamed to(afterUpdate)Options removed:
disabledoption has been removed.viewClassoption has been removed.minThumbSizeoption has been removed, use the css variable instead--scrollbar-thumb-min-size.autoWidthDisabledhas been removed.autoHeightDisabledoption has been removed.autoWidthDisabledoption has been removed.scrollAuditTimeoption has been removed since the scroll event is no longer used.windowResizeDebouncehas been removed from the global options.NgScrollbar.scrolledhas been removed, UseNgScrollbar.viewport.nativeElementto listen to the scroll event.Usage changes:
When viewport directive is used, it requires
externalViewportattribute on the component like the following example:Note that an additional content wrapper element is required in order for the scrollbar to work properly.
Additionally, you can select the viewport by providing a selector
.my-viewportinstead of usingscrollViewportdirective.This discussion was created from the release v14.0.0-beta.1.
Beta Was this translation helpful? Give feedback.
All reactions