Open JoergSH opened 1 year ago
I'm experiencing the same issue. Have you found a solution @JoergSH ?
Not sure if this is a optimal solution, but assigning a value to the "_callbackTimestamp" worked for me. You can find the problematic function at,
control_pad_plus/lib/views/joystick_view.dart >> GestureDetector(onPanStart)
(Above path is only for joystick. Since I was only using the joystick widget, do not have an idea about other views.)
Then edit the "onPanStart:" function as follows.
onPanStart: (details) {
// add this block
if (_callbackTimestamp == null) {
_callbackTimestamp = DateTime.now();
}
// ends here
_callbackTimestamp = _processGesture(actualSize, actualSize / 2,
details.localPosition, _callbackTimestamp!);
setState(() => lastPosition = details.localPosition);
},
When I touch the pad Ball doesn't move I get following Problem:
What goes wrong? I use latest Android Studio Giraffe | 2022.3.1