RangeSeekBar icon indicating copy to clipboard operation
RangeSeekBar copied to clipboard

How to prevent overlap of thumb i am using three thumb any hit in where i can fit it

Open himanshumistri opened this issue 6 years ago • 3 comments

Hello ,

I have three thumbs, one is left, other it right and last one which is center one.

How I can prevent center thumb to prevent overlap of left and right thumb while dragging it.

Thanks, Himanshu

himanshumistri avatar Mar 07 '18 12:03 himanshumistri

The comment on RangeSeekBar.java line 218 indicates that it can't be dragged over other thumbs? Doesn't it stop when dragged over other thumbs? I haven't touched the code in years so everything should still be working :)

larpon avatar Mar 07 '18 21:03 larpon

@Larpon That correct but I can prevent drawable to draw to overlap each other when the user moves them to closest one.

himanshumistri avatar Mar 08 '18 12:03 himanshumistri

@himanshumistri - then I'm afraid you can't. In that case you could add some kind of collision detection based on the drawable bounds or some bounding rectangle somewhere in onTouchEvent - the most straight forward would be to use the thumbs drawables bounding box I guess

larpon avatar Mar 08 '18 14:03 larpon