Zim019 interval and zim018 interval

import zim from "https://zimjs.org/cdn/019/zim";

// See Docs under Frame for FIT, FILL, FULL, and TAG
new Frame(FIT, 1024, 768, black, black, ready);
function ready() {
interval(2,function(evt){
	zim.zogr('in zim019 interval evt.count=',evt.count)
},null,true)		
}

image

why the interval event.count begin index is 0 in ZIM018
but begin index is -1 in ZIM019
image

1 Like

Confirmed, that is a bug. Will fix that up very shortly. The count should be 0 to start if the interval starts right away as the count counts intervals. It is working if the immediate parameter is false, but broken if true. Thanks for letting us know. Will get to it very soon.

Hi @Yan - this has been fixed and patched in ZIM 019. Thanks.

1 Like