Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change scroll position programmatically in some cases and weird behavior in RichEditBox inside ScrollViewer #2415

Closed
soumyamahunt opened this issue May 8, 2020 · 3 comments
Labels
area-TextBox TextBox, RichEditBox needs-author-feedback Asked author to supply more information. no-recent-activity

Comments

@soumyamahunt
Copy link

Describe the bug
Here is a pull request to a simple text editor app in which I implement changing scroller position from scrollbar context menu. However the view is reset when app comes into focus. Changes have been made to change scroller position after RichEditBox comes into focus which makes it work for vertical scrollbar but for horizontal scrollbar it doesn't work.

Also, after RichEditBox comes into focus, if you click on any of the text and move your mouse, it will select from there acting like you are doing mouse left click + text selection.

Steps to reproduce the bug
Steps to reproduce the behavior:

  1. Clone this repo.
  2. Switch to "scroll-enhancement" branch.
  3. Build and launch the app.
  4. Right click on horizontal scrollbar and choose a position for scroller.
  5. Click anywhere inside the editor and move/hover the pointer.

Expected behavior
Scroll position should change and selection should work normally.

Screenshots

Version Info

NuGet package version: not applicable

Windows 10 version Saw the problem?
Insider Build (19608) Yes
November 2019 Update (18363) Yes
May 2019 Update (18362) Yes
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Mobile
Xbox
Surface Hub
IoT
@chrisglein
Copy link
Member

@ranjeshj This seems to be scrolling related, or do you have some context here that indicates it's a rich edit bug?
@RBrid Anything look familiar here with regards to programmatic interactions with ScrollViewer?

@ranjeshj
Copy link
Contributor

@soumyamahunt Is this specific to having a RichEditBox ? If there was a large rectangle instead of the RichEditBox does it still repro ?

@chrisglein chrisglein added needs-author-feedback Asked author to supply more information. area-TextBox TextBox, RichEditBox and removed needs-triage Issue needs to be triaged by the area owners labels Aug 14, 2020
@msft-github-bot
Copy link
Collaborator

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TextBox TextBox, RichEditBox needs-author-feedback Asked author to supply more information. no-recent-activity
Projects
None yet
Development

No branches or pull requests

4 participants