Welcome,
Guest
. Please
login
or
register
.
February 08, 2026, 10:14:41 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIScrollView bug on using scrollwheel
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIScrollView bug on using scrollwheel (Read 5627 times)
Aurigan
Newbie
Thank You
-Given: 2
-Receive: 0
Posts: 21
UIScrollView bug on using scrollwheel
«
on:
May 24, 2016, 09:32:10 AM »
The bug is:
* have a bouncy horizontal scrollview
* use the mouse wheel to scroll the contents so that they're squished against the side
* they'll smoothly animate back to the edge (as expected)
* then the contents jerk to a new position (for me ~100px offset from where they should be)
This looked like it was being caused by mScroll never dropping to 0 (I was seeing 3x10^-30 or something tiny like that). As a quick hack/fix I changed this in UIScrollView:
if (mMomentum.magnitude > 0.0001f || mScroll != 0)
to
if (mMomentum.magnitude > 0.0001f || Mathf.Abs(mScroll) > 0.0001f)
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIScrollView bug on using scrollwheel
«
Reply #1 on:
May 24, 2016, 04:56:18 PM »
Thanks, I'll add your change locally and see if it causes any adverse effects on my end. If not, it will be there in the next update.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIScrollView bug on using scrollwheel