ReactUnity / core

React and HTML framework for Unity UI & UIToolkit
https://reactunity.github.io/
MIT License
723 stars 38 forks source link

Scroll position resetting after clicking input #68

Closed noah-potter closed 1 year ago

noah-potter commented 1 year ago

I'm seeing a bug where the scroll position resets when clicking inputs. I recreated this with the latest ReactUnity/full-sample by running the UIToolkit scene without any changes, scrolling down to an input, and clicking several times (in my project it happens more frequently often on the first click)

Unity version: 2021.3.8f1

https://user-images.githubusercontent.com/17100846/198515844-33e9ac95-796c-47c0-9d46-cca362959f2e.mp4

KurtGokhan commented 1 year ago

I noticed it is not clicking that causes this behavior. It is caused by dragging. I will try to see why it happens.

KurtGokhan commented 1 year ago

This is a bug in UIToolkit ScrollView on Unity side. I think it is either fixed, or is being fixed in latest versions. See the forum thread.

noah-potter commented 1 year ago

Oh nice, thanks! I'll close this now since it isn't related to this project