flutter_xlider icon indicating copy to clipboard operation
flutter_xlider copied to clipboard

first tap not fire onDrageCompleted

Open arezaee opened this issue 5 years ago • 2 comments
trafficstars

Hi, Thanks for beautiful and useful widget. I have created a simple slider, just after first tap , onDragStarted fired, but onDragCompleted not fired, and after second try it works well.

I think it's a bug.

arezaee avatar Jul 25 '20 09:07 arezaee

I have sometimes the same bug, pass for onDragStarted and for onDragging but not on onDragCompleted

oscarshaitan avatar Aug 07 '20 01:08 oscarshaitan

Hi, first of all, I also wanna thank you for the widget! I also have encounter this "bug" or similar of onDragCompleted not being fired. And aiming to amplify a bit into more details to help, I have found the following behaviour:

  • When the slider has the leftest value selected (usually min value) and you press any other value, the onDragCompleted does not trigger. If from the leftest value you click on another value and then slide between values, the callback does not trigger neither.

  • When the slider is on the leftest value and you click on this value and then slide, the onDragCompleted does trigger.

  • If you have the rtl as true, the same behaviour occurs. From the leftest and not the min value.

  • For the other values it does trigger correctly (sliding or clicking), but if you put the handler to the leftest again, the same will be reproduced.

  • Also tried with different min values (not only 0) and with centeredOrigin as true, and it has the same behaviour -> If the handler is at the leftest value, when clicking to other will not trigger the callback.

If I have some time I will try to check more in detail the code just to try if I can figure out more information. If you have any more information or there is an option or something to take into account that could solve this, please inform me about. Thanks for all!

HectorHumanitcare avatar May 08 '23 15:05 HectorHumanitcare