OK this seems to be the issue:
- iOS devices "fire" the button event when "Touch Up Inside" occurs, which is when a release happens. So this renders unworkable the strategy of using "press" event for one thing as long as the button is held down (for example, activate a CR servo), then using a "release" event for the a related event (e.g. set the servos to throttle 0.0). Curiously, the two events happen so quickly that sometimes the feed shows up with the release button ahead of the press button.
I've got a kludgy work-around. I've set both events to the same thing (e.g. "forward"), and I have created a "stop" button that I use to trigger stops. Not ideal, but this definitely offers robot control where as the prior code was unworkable.
Related: It would be great to be able to turn off one of these events. Right now a button press sends 2x the events - a press & release. This doubles the event rate & increases the likelihood one will hit a throttle. And since press/depress don't really work as separate events for mobile, it makes sense to offer an option to disable these.
Finally - on mobile I find that even in landscape mode on an iPad, the dashboard doesn't seem to layout as expected. Here are some screenshots:
Normal Desktop layout on laptop, as expected:
- desktop dashboard.png (89.77 KiB) Viewed 164 times
But here is an iPad in landscape mode where the buttons should be able to fit:
- desktop dashboard.png (89.77 KiB) Viewed 164 times
iPhone is even worse - it'd be great to be able to make the buttons smaller so they might fit.
- desktop dashboard.png (89.77 KiB) Viewed 164 times