QuickView not working after load product Using infinite scroll Magento 2

I am also using infinite scroll on category pages and search result page. I have managed to work by changing the following file:

app/code/WeltPixel/Quickview/view/frontend/templates/initialize.phtml

Replacing the whole code with below code:

<?php
// @codingStandardsIgnoreFile

/** @var $block \WeltPixel\Quickview\Block\Initialize */
?>
<script>
    requirejs(['jquery', 'weltpixel_quickview' ],
        function   ($, quickview) {
            $(document).ready(function() {
                $('#maincontent').on('click', '.weltpixel-quickview', function() {
                    var prodUrl = $(this).attr('data-quickview-url');
                    if (prodUrl.length) {
                        quickview.displayContent(prodUrl);
                    }
                });
            });
        });

    window.weltpixel_quickview = <?php /* @escapeNotVerified */ echo \Zend_Json::encode($block->getConfig()); ?>;
</script>