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
-
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.
mouse
events withpointer
events.cdkVirtualScrollViewport
directive to the util package.matSelectViewport
directive to the util package, closes #537.scrollTimelinePolyfill
option to change the path of scroll timeline polyfill.throttleTime
instead ofdebounceTime
in case resize sensor needed to be throttled.Reached events package has been written from scratch ✨
IntersectionObserver
instead of the scroll event to detect when scroll is reached.reachedTopOffset
reachedBottomOffset
reachedStartOffset
andreachedEndOffset
in addition toreachedOffset
input.--reached-offset
,--reached-offset-top
,--reached-offset-bottom
,--reached-offset-start
and--reached-offset-end
.Breaking changes
Options renamed:
sensorDisabled
has been renamed todisableSensor
sensorDebounce
has been renamed tosensorThrottleTime
pointerEventsDisabled
has been renamed todisableInteraction
trackClickScrollDuration
has been renamed totrackClickDuration
(updated)
has been renamed to(afterUpdate)
Options removed:
disabled
option has been removed.viewClass
option has been removed.minThumbSize
option has been removed, use the css variable instead--scrollbar-thumb-min-size
.autoWidthDisabled
has been removed.autoHeightDisabled
option has been removed.autoWidthDisabled
option has been removed.scrollAuditTime
option has been removed since the scroll event is no longer used.windowResizeDebounce
has been removed from the global options.NgScrollbar.scrolled
has been removed, UseNgScrollbar.viewport.nativeElement
to listen to the scroll event.Usage changes:
When viewport directive is used, it requires
externalViewport
attribute 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-viewport
instead of usingscrollViewport
directive.This discussion was created from the release v14.0.0-beta.1.
Beta Was this translation helpful? Give feedback.
All reactions