flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

SlidableController.dispatchEndGesture() reports wrong direction for StillGesture

Open ptsekov opened this issue 2 years ago • 0 comments

For StillGesture events SlidableController.dispatchEndGesture() uses the 'direction' parameter passed to it by _SlidableGestureDetectorState.handleDragEnd() without taking into account which pane is being dragged. When dragging 'endActionPane' to the left to open it SlidableController.dispatchEndGesture() would generate a StillGesture with 'closing' set to true which is incorrect. As a result '_ActionPaneState.handleEndGestureChanged()' would use 'closeThreshold' instead of 'openThreshold'.

ptsekov avatar Sep 10 '23 13:09 ptsekov