librelist archives

« back to archive

TUIScrollView & knobs

TUIScrollView & knobs

Emmanuel Valentin
2011-07-14 @ 23:54
I facing issue implementing a tuiscrollview based view. 

I am following the TUITableView approach and have one subclass of 
TUIScrollview that is managing the subviews that present the content. 
Drawing and layouting are working properly. the issue is related to the 
TUIScrollKnob. it responds to mouse click when there is no scroll and when
there is a scroll, it does not receive anymore mouse click. I traced the 
problem down to the hitTest:withEvent method in TUIView. Apparently the 
knob bounds are taking into account the scroll offset (as expected) but 
not the event point.  

I am certainly missing something. Any help would be appreciated.