hcbpassos / drag_select_grid_view

A grid that supports both dragging and tapping to select its items.
BSD 2-Clause "Simplified" License
133 stars 34 forks source link

how to change long press #6

Closed mughu94 closed 4 years ago

mughu94 commented 5 years ago

hi , is there any settings to change longPress selection on grid to onTap selection ? thank you

ghost commented 5 years ago

I'm not sure I understand you. Would you mind further elaborating?

mughu94 commented 5 years ago

my mean , i want to change button controller on long press to selecting , into just tapping and no need wait long press to select . I hope that you understand my mean .

ghost commented 5 years ago

I see. Seems like an usual behavior. Can you give me a practical example where this makes sense?

dungnv2602 commented 4 years ago

I guess he is referring to this Screenshot_20200307-165630_My Files Would be awesome if this is achievable

hcbpassos commented 4 years ago

Currently, this library requires you to long-press to start "selection mode". When you are in "selection mode", every item you tap gets selected. From my understand, the feature you are looking for is a way to start "selection mode" without having to previously long-press.

@Carbone13 @dungnv2602 Is that correct?

dungnv2602 commented 4 years ago

In my perspective, the main issue which this package is trying to solve is able to select multiple grid items along with the first item selected to the next item user dragging up/down to. If changing selecting items to onTap, a scenario like above doesn't make sense anymore. So we should respect onLongPress, don't change it.

ghost commented 4 years ago

@dungnv2602 I must agree, therefore I'm closing this for now.