Author Topic: UIScrollbar speed  (Read 5591 times)

admiral

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
UIScrollbar speed
« on: March 02, 2015, 01:46:24 PM »
I've figured out how to control the speed of scrolling on UIScrollView with "Scroll wheel factor", but when I click and drag the scrollbar it seems to move faster than the mouse does. Is there a setting I'm missing somewhere? Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollbar speed
« Reply #1 on: March 03, 2015, 05:29:27 PM »
Scroll bar's movement is always relative to the mouse. If your scroll bar moves at a different rate than the mouse pointer, then all I can suggest is make sure your NGUI is up to date and that all your scales of objects leading up to it are properly uniform, ideally (1, 1, 1), not including the UIRoot.

admiral

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UIScrollbar speed
« Reply #2 on: March 03, 2015, 05:36:55 PM »
All ancestors of the Scrollbar are scale (1,1,1). The background and foreground objects itself both have scales (0.1, 7, 1), maybe that's what's messing it up. Is there a way to change the size of the scrollbar without messing with scroll speed?

admiral

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UIScrollbar speed
« Reply #3 on: March 03, 2015, 05:39:27 PM »
Nevermind, figured it out! I set the size of the widget instead of the size of the gameobject.