Juce list, ignoring clicks


#1

I have a list that I let the user scroll with a finger (iPad). I use another class (the ListBoxModel) as a MouselIstener, and it does the scrolling. But I don’t see a way to prevent a click from happening, i.e. when they’re scrolling I don’t want list row selections to change.

I don’t see the way to do that, but I expect it’s there?

Bruce


#2

That’s a bit tricky really… I guess you could use custom list components, and override the mouse events so that it only gets selected on mouse-up if the cursor didn’t move very far.

Or if you want to have a go at making the listbox code smart enough to handle this kind of thing, I’d be happy to help with that.