Märt Rang
                                            Märt Rang
                                        
                                    I seem to have same problem. If the target element is half way out of viewport, it get both dark and complex classes, and when scrolling back, it changes color...
This fix still fails with file https://github.com/fire1ce/eicar-standard-antivirus-test-files/blob/master/eicar-adobe-acrobat-javascript-alert.pdf I removed chunk logic and then that one was detected as well.
Not sure, we have file size limits (under 100MB), so this should not be a problem. I checked how the Drupal module does this and I didn't see any chunking,...