Author Topic: Slider Clicking Problem when Inside of ScrollView.  (Read 2214 times)

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Slider Clicking Problem when Inside of ScrollView.
« Reply #1 on: March 11, 2014, 05:47:58 PM »
How would I reproduce this? I tried the following:

1. New scene.
2. Created a scroll view.
3. Dragged in a few sliders and scroll bar controls inside.
4. Hit play and tired dragging them. All works as expected.

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: Slider Clicking Problem when Inside of ScrollView.
« Reply #2 on: March 12, 2014, 02:23:19 AM »
This is a Scrollview inside of a scrollview.
The reason for the setup below is to simulate the PowerPoint Animation panel and it's working except for the slider problem.

Scrollview - vertical
  Grid - arrange vertical
     button
  Grid - arrange horizontal
    ScrollView - horizontal
      Grid - arrange vertical
         Slider

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Slider Clicking Problem when Inside of ScrollView.
« Reply #3 on: March 12, 2014, 06:06:49 PM »
You can't nest scroll views in NGUI. It's a well-known limitation: http://www.tasharen.com/forum/index.php?topic=6763.0

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: Slider Clicking Problem when Inside of ScrollView.
« Reply #4 on: March 12, 2014, 09:30:28 PM »
DaikonForge handles Nested Scrollview very Nicely. 

This is quite a big limitation for a GUI framework.
When do you think NGUI will be able to support this basic GUI functionality. 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Slider Clicking Problem when Inside of ScrollView.
« Reply #5 on: March 12, 2014, 09:41:47 PM »
Daikon Forge does all clipping manually on the CPU. NGUI does clipping on the GPU. There is a world of difference between the two in terms of performance, but the performance comes with a limitation. There is a way to have nested clipping by taking advantage of stencil buffers instead, but I have not made an example of how to do that yet.

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: Slider Clicking Problem when Inside of ScrollView.
« Reply #6 on: March 12, 2014, 09:50:37 PM »
I agree that NGUI has an edge on performance, although from a GUI framework, nested scrollview is a very Basic feature.  In this day and age, GUIs are getting more and more user friendly which means that we have to make more advanced components.  Without nested scrollviews, it's very painful.