fix: Less dragging is now required
This commit is contained in:
parent
a01e8602e5
commit
7b1ad49e4d
@ -39,9 +39,9 @@ class GridItemState extends State<GridItem> {
|
|||||||
onHorizontalDragEnd: (_) {
|
onHorizontalDragEnd: (_) {
|
||||||
if (!widget.enableDrag) return;
|
if (!widget.enableDrag) return;
|
||||||
|
|
||||||
if (_translationX <= -60) {
|
if (_translationX <= -40) {
|
||||||
widget.plusCallback!();
|
widget.plusCallback!();
|
||||||
} else if (_translationX >= 60) {
|
} else if (_translationX >= 40) {
|
||||||
widget.minusCallback!();
|
widget.minusCallback!();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user