Skip to content

Fix #3247 Add activity ID to useObserveScrollPosition and useScrollTo hooks#3372

Merged
cwhitten merged 8 commits intomicrosoft:masterfrom
compulim:fix-3247-scroll-to-activity
Aug 5, 2020
Merged

Fix #3247 Add activity ID to useObserveScrollPosition and useScrollTo hooks#3372
cwhitten merged 8 commits intomicrosoft:masterfrom
compulim:fix-3247-scroll-to-activity

Conversation

@compulim
Copy link
Copy Markdown
Contributor

Fixes #3247.

Changelog Entry

Added

  • Resolves #3247. Support activity ID on useObserveScrollPosition and useScrollTo hook, by @compulim, in PR #XXX

Description

Added activityID to useObserveScrollPosition and useScrollTo hooks.

This will enable developers to programmatically scroll an activity into view.

Specific Changes

  • Updated useObserveScrollPosition hook to callback activityID
  • Updated useScrollTo hook to support activityID
    • If both activityID and scrollTop are specified, we will take scrollTop as it has better precision

  • Testing Added

@compulim compulim force-pushed the fix-3247-scroll-to-activity branch from 8013976 to d8c17db Compare August 3, 2020 19:38
Copy link
Copy Markdown
Contributor

@tonyanziano tonyanziano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@cwhitten cwhitten merged commit 906de77 into microsoft:master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OC: Scroll to message by ID (Aug 1)

3 participants