So when I use my code in the browser, all works fine without any issue. However when I click on Chrome Dev Tools and use the device mode to simulate any type of mobile or ipad, and the code just does not run.
I have physically tried it on several new mobile devices also, and it still does not work. Even when I use the most simplest of code inside the function or reduce the interval values rate to next to nothing.. just no response.
It is linked to a button being pressed with the mouse / touch
function moveLeft() {
time = setInterval(function () {
angle += 1;
if (angle > 360) {
angle = 0;
}
}, 5);
}
I am guessing maybe there is some form of throttling going on that is stopping the processing from running quick enough, but even when i reduce the range it still does not work. The compatibility says it runs on all phones?