Justinas S

Results 7 comments of Justinas S

Hello, thanks for answer. I don't think it is related to width/height - it does not determine orientation of image, but EXIF metadata in JPEG does. What I found and...

Did a couple more tests and tracked it down to screen refresh rate: * I use 100 Hz screen refresh rate, if I switch to 60 Hz - problem disappears....

calling requestAnimationFrame two times in a row before calling drawImage does help, but so does adding setTimeout(..., 10). my guess: * setting panel height (https://github.com/pqina/filepond/blob/b559b56cd8d6e82429646ec719df39415e7b8944/src/js/app/view/item.js#L144) happens after requestAnimationFrame (https://github.com/pqina/filepond-plugin-image-preview/blob/1484606b564ef9e705a7f738e1d5beba16351856/src/js/index.js#L172) -...

I googled a bit, but didn't find such an option. But if you have any ideas/commits/PRs I can test it.

When I changed those lines to ``` requestAnimationFrame(function() { setTimeout(function () { root.dispatch('DID_FINISH_CALCULATE_PREVIEWSIZE', { id: props.id }); }, 20); }); ``` It seems to be stable now, but using 0ms...

Still reproduces with this: ``` if (root.ref.shouldDrawPreview) { // queue till next frame so we're sure the height has been applied this forces the draw image call inside the wrapper...