[Pas2js] requestAnimationFrame

Ryan Joseph ryan at thealchemistguild.com
Sun May 13 17:09:32 CEST 2018


I’m trying to call window.requestAnimationFrame but I don’t see where it’s defined in the RTL and I get an error on the parameter DOMHighResTimeStamp (I don’t know why I didn’t get an undefined error on requestAnimationFrame).

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

procedure UpdateCanvas(time: DOMHighResTimeStamp);
begin
	
end;

window.requestAnimationFrame(UpdateCanvas);


Regards,
	Ryan Joseph



More information about the Pas2js mailing list