Thanks - yes, it's a bit tricky. I think the problem is that we're reporting events from the touchscreen controller itself, as soon as we get them - so to try and 'clear the queue' we'd have to set up something to ignore future events (it's not like we can just flush them).
This doesn't actually seem to come up that much, so honestly, I think the best solution for now is probably the timeout.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - yes, it's a bit tricky. I think the problem is that we're reporting events from the touchscreen controller itself, as soon as we get them - so to try and 'clear the queue' we'd have to set up something to ignore future events (it's not like we can just flush them).
This doesn't actually seem to come up that much, so honestly, I think the best solution for now is probably the timeout.