2017-11-27 10:33:54 +01:00
|
|
|
data.event.preventDefault();
|
|
|
|
|
|
|
|
var touches = Object.keys(data);
|
|
|
|
/**
|
|
|
|
* This code is rediculous - but it fixes the bug in ios where audio does not play
|
|
|
|
*/
|
|
|
|
|
2018-04-10 15:48:32 +02:00
|
|
|
/*R3.Event.Emit(
|
|
|
|
R3.Event.PLAY_AUDIO,
|
2017-11-27 10:33:54 +01:00
|
|
|
{
|
|
|
|
name : 'Audio - Flamethrower'
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
if (touches.length > 2) {
|
|
|
|
*/
|
2018-04-10 15:48:32 +02:00
|
|
|
R3.Event.Emit(R3.Event.MOUSE_DOWN);
|
2017-11-27 10:33:54 +01:00
|
|
|
/*} else {
|
2018-04-10 15:48:32 +02:00
|
|
|
R3.Event.Emit(
|
|
|
|
R3.Event.STOP_AUDIO,
|
2017-11-27 10:33:54 +01:00
|
|
|
{
|
|
|
|
name : 'Audio - Flamethrower'
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}*/
|
|
|
|
|
|
|
|
//@ sourceURL=touchStart.js
|