kop / yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget
https://kop.github.io/yii2-scroll-pager/
MIT License
180 stars 63 forks source link

kop scroll-pager not working on mobile #94

Open byndstd opened 5 years ago

byndstd commented 5 years ago

I'm using this extension on my Yii2 web and it's working on PC in all browsers but not working on android tablet and mobile. On android it's not display "show more" but if I have content less than pager size it display "You reached the end", that mean it's working only if I have no content to load, my code is :

<?= ListView::widget([
    'dataProvider' => $dataProvider,
        'summary'=>'',
        'viewParams' => ['isMember' => $isMember],
        'itemOptions' => ['class' => 'item'],
        'emptyText' => 'No content yet posted',
        'itemView' => '/content/chnPost',
        'pager' => ['class' => \kop\y2sp\ScrollPager::className()]
    ]);
?>

Need help please