Fixed another ScrollinList copy constructor issue (selecting wrong item)

This commit is contained in:
emb 2015-10-21 20:56:13 -05:00
parent 1770efb200
commit d1a45e650e

View File

@ -52,6 +52,7 @@ ScrollingList::ScrollingList(Configuration &c,
, focus_(false)
, itemIndex_(0)
, componentIndex_(0)
, selectedOffsetIndex_(0)
, scrollStopRequested_(true)
, notifyAllRequested_(false)
, currentScrollDirection_(ScrollDirectionIdle)
@ -77,6 +78,7 @@ ScrollingList::ScrollingList(const ScrollingList &copy)
, focus_(false)
, itemIndex_(0)
, componentIndex_(0)
, selectedOffsetIndex_(copy.selectedOffsetIndex_)
, scrollStopRequested_(true)
, notifyAllRequested_(false)
, currentScrollDirection_(ScrollDirectionIdle)