Hi Andreas,
Is this workaround still working with SDK 8.5 ?
I can't figure out how to have it work on my side, especially the
var event = {changedTouches: };
which doesn't look like a correct JSON object.
If this is not available anymore, is there a way to simulate a click at a specific location on the screen? I'd like to place an AR.Model in my InstantTracker World at the position corresponding to the lower-left corner of my screen, when triggering a specific javascript function.
Thanks,
Gabriel
It works with
var event = {
changedTouches:
[
{
screenX: X,
screenY: Y
}
]
};
But only on iOS, not working on Android (the point is always on the upper left corner of the screen). Is there a way to simulate a click at a specific position, working for both iOS and Android ?
Gabriel
Found the fix on this discussion : https://support.wikitude.com/support/discussions/topics/5000081081
A correct syntax to have it work on Android as well would be
var event = {
changedTouches:
[
{
screenX: X,
screenY: Y,
clientX: X,
clientY: Y
}
]
};
Hi Gabriel,
thx for sharing your solution! Hopefully it helps others.
Best regards,
Andreas Schacherbauer
Gabriel, you saved my life :)
Ricardo Mantero