Skip to content

v16.0.0

Compare
Choose a tag to compare
@MurhafSousli MurhafSousli released this 26 Sep 05:20
· 1 commit to master since this release

What's Changed

  • feat: scrollViewport directive can be a descent child, not necessarily a direct child of <ng-scrollbar externalViewport>.
  • feat: Add start, end, right, bottom and center options to scrollToElement (supports RTL), closes #637.
  • feat: Add syncSpacer directive that is applied on <ng-scrollbar externalViewport> component to sync spacer element with content dimension changes.
  • fix: ResizeObserver loop completed with undelivered notifications, closes #650.
  • enhance: Improve scrollbar rendering speed that uses externalViewport such as integrating with 3rd party library.
  • enhance: Use the shared resize observer from the CDK to do the necessary calculation.
  • enhance: asyncDetection Use the content observer service from the CDK to detect viewport and content wrapper elements.
  • enhance: use --scrollbar-thumb-hover-color not only when hovered but also when active.
  • enhance: track and thumb controls uses more accurate measures using getBoundingClientRect instead of direct size properties.
  • refactor: Switch to InputSignal instead of standards inputs across components.
  • refactor: Use effects instead of ngOnInit to initialize the scrollbar component.
  • refactor: Remove scrollViewport directive from ng-scrollbar hostDirectives because it's redundant.
  • refactor: the TrackAdapter now uses viewport & content dimension signals to update the track size instead of ResizeObserver events.

Breaking changes

  • Minimum compatibility is Angular v17.3.0
  • The directive cdkVirtualScrollViewport no longer accepts auto value, instead use syncSpacer
    • Before <ng-scrollbar externalViewport cdkVirtualScrollViewport="auto">
    • After <ng-scrollbar externalViewport cdkVirtualScrollViewport syncSpacer>

Full Changelog: v15.1.3...v16.0.0