frame.touch = false;
frame.singleTouch = true;
You are asking about the properties? There currently are no properties for these - only parameters. Took a look at CreateJS Stage as well and did not see any properties to change things after they are made. We can look into what would be needed to adjust this if you need it.
You could also store your content in a container and move it to a Frame with a different setting.
I hope its possible to be properties please.
To pass to other frame its not possible for this project i have more than 170 different game on that. few of team need the multi touch
Okay - will take a look to see what needs to be done - just off teaching so might be later tonight or tomorrow. Cheers.
Just doing a quick check and it looks like it can be done on the Touch class directly in CreateJS
createjs.Touch.enable(S, false, allowDefault); // with allowDefault either true or false
https://createjs.com/docs/easeljs/classes/Touch.html
We can then easily make a getter and setter method for both those - probably tonight. But you are welcome to test it out with the createjs code.
didnt work for me
use:
createjs.Touch.disable(S);
createjs.Touch.enable(S, true);
for single touch - and if you want to go back to multitouch, do both again and set true to false. If you do not want touch, then just disable and do not enable.
We will add this in as getter setter methods now and let you know if it is live.
Yes! That works nicely - tested on computer touch screen, Apple iPad and Android Tablet. https://zimjs.com/test8/touch.html
Will set live as in about half an hour - we are working on something else too.
Note - you can also set drag() to be single touch with the singleTouch:true parameter.
Hi @amihanya - touch and singleTouch parameters have now been added to Frame and updated in the CDN and NPM.
very handy .. so can you make it a demo zapp also
thx
Idea for songle touch work for a textin0ut in a list?
and I would like tab to go to the next textinpt @abstract
try it out...
I tried it on my smart board with Windows installed at school today. It works. Thank you.