Avoid wrong move action on a tap gesture when panelBuilder is not null.
Scenario
The possible scenario is opening the panel to a custom position with PanelController, then just tap the panel body.
The panel will do the animation to open/close/snap position due to the _onGestureEnd will be called all the time on each onPointerUp event.
Solution
Use constant kPanSlop to determine the dy to be confident the panning gesture.
Avoid wrong move action on a tap gesture when panelBuilder is not null.
Scenario The possible scenario is opening the panel to a custom position with PanelController, then just tap the panel body. The panel will do the animation to open/close/snap position due to the _onGestureEnd will be called all the time on each onPointerUp event.
Solution Use constant kPanSlop to determine the dy to be confident the panning gesture.