0
I’m starting to play around with Electron and javascript and I’m trying to make a window become wider over time, so I try to loop the window.resizeTo(tamanho da janela + 1,0)
but the window widened only to the right so I tried to use the window.moveBy(-1,0)
however the window always moves diagonally for more than I put 0 in y and always moves to the same direction even with the values being below 0
the only page code
var wide = 128
var FRAME = 200 ;
var loop = function() {
window.resizeTo(wide,256);
wide++;
window.moveBy(01,0)
setTimeout(loop, FRAME);
};
setTimeout(loop, FRAME);
Hi Filipe! Would it be possible to create a way to reproduce the problem here? maybe with https://codesandbox.io/ ?
– Sergio