This is because a missing capital letter.
I think you can do something like below.
// initialize counter
this.counter = 0;
this.counterText = this.app.root.findByName('CounterText');
// update counter
this.counter += 1;
this.counterText.element.text = this.counter;
Actually, you already created a topic for this and didn’t respond anymore?
Nice to see how my example project is used!
It doesn’t seem to work stable on the trackpad indeed. I need to debug this to see if this is something because of the script or maybe something else that I didn’t know.
I don’t think this is related to the touch screen as there is no touch support for the script at the moment.