I made a Windows app (supposed to be an overlay kind of thing) which allows itself to be moved around by using a button (gesture detector) and the Flutter function onPanStart and onPanEnd to detect when you start dragging and when you stop. For some reason, when I hold the mousebutton down for a bit first (without moving), afterwards, when I stop moving it (and release the mousebutton), it doesn't call the onPanEnd function.
You can find the code on GitHub here: https://github.com/vo2075/position-test
(as mentioned in the comments of the code, this is normally part of a bigger app, which I am not going to post because it is way too big and completely unnecessary for this problem).
the problem occurs here:{file: large_container.dart line:61}
i fixed it by adding a timer of 3 seconds after which the variable _isDragging is set to false
(you can see the changes i did on github)