I'm having some trouble getting my UIDraggablePanel to behave the way I want it to. For reference, my UI is set up as so:
Anchor
^ Panel (UIPanel, UIDraggablePanel)
^ Grid (UICenterOnChild, UIGrid)
^ Item (BoxCollider, UIDragPanel, UIButton) [3 or more of these in the grid]
The panel is set to MomentumAndSpring and SmoothDragStart is enabled, and the grid is arranged horizontally, with one item centered on the screen at any time, and its neighbors about a third on-screen on either side.
What I'm seeing is that scrolling works just fine for the middle items in the grid, but the first and last items tend to "stick." Swipes, even forcible ones, won't cause the focus to recenter on the next item unless the dividing line between the two crosses the center of the screen. I've tried playing with the MomentumAmount, but I need to drastically increase it to see any improvement, and then the middle items become extremely fickle and easy to swipe past.
I've done a *little* bit of digging and tried logging the mDrag.currentMomentum from within UICenterOnChild, and it seems that swipes on a center item are imparting significantly more momentum - about 10x as much as the same size swipe on the first or last item. Before I waste too much time trying to "fix" this, I thought I should as the pertinent questions:
- Is this an artifact of me using the tools wrong, in which case how should I go about doing this the right way?
- Or, is this a known issue, in which case is there a decent and accepted workaround?
- Or, is this a bug, in which case what can I do to help see that it's fixed?
Thanks in advance for any assistance offered!