Infinite scrolling not working properly

Describe the problem.
I've used element scroll to scroll down and load all elements but it scrolls down midway before scrolling up to the top and scrolling down again to the absolute bottom (which is too far down from the last loading element). On top of that, it stops at 36 entries. Can't figure this out for my life. How do I wait for all to load before scraping all entries?

Url: http://example.com
https://www.foodpanda.co.th/restaurants/lat/18.7979842/lng/98.96614459999999/city/Chang%20Wat%20Chiang%20Mai/address/Baan%20Thai%20Apartment%2C%2036%20Nimmana%20Haeminda%20Rd%20Soi%206%2C%20Tambon%20Su%20Thep%2C%20Amphoe%20Mueang%20Chiang%20Mai%2C%20Chang%20Wat%20Chiang%20Mai%2050200%2C%20Thailand/Nimmana%20Haeminda%20Road%20Soi%206/Baan%20Thai%20Apartment%2036?postcode=Tambon+Su+Thep&verticalTab=restaurants

Sitemap:
{"_id":"nimmana-haeminda","startUrl":["https://www.foodpanda.co.th/restaurants/lat/18.7979842/lng/98.96614459999999/city/Chang%20Wat%20Chiang%20Mai/address/Baan%20Thai%20Apartment%2C%2036%20Nimmana%20Haeminda%20Rd%20Soi%206%2C%20Tambon%20Su%20Thep%2C%20Amphoe%20Mueang%20Chiang%20Mai%2C%20Chang%20Wat%20Chiang%20Mai%2050200%2C%20Thailand/Nimmana%20Haeminda%20Road%20Soi%206/Baan%20Thai%20Apartment%2036?postcode=Tambon+Su+Thep&verticalTab=restaurants"],"selectors":[{"id":"restaurant-wrapper","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":".vendor-list figure.item","multiple":true,"delay":"500"},{"id":"restaurant-name","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"span.name","multiple":false,"regex":"","delay":0},{"id":"restaurant-rating","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":".rating strong","multiple":false,"regex":"","delay":0},{"id":"restaurant-comments","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"span.count","multiple":false,"regex":"","delay":0},{"id":"restaurant-cuisine","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":".vendor-characteristic span","multiple":false,"regex":"","delay":0},{"id":"restaurant-deliveryfee","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"li.delivery-fee","multiple":false,"regex":"","delay":0},{"id":"restaurant-deliverytime","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"span.badge-info","multiple":false,"regex":"","delay":0}]}

Try increasing your delay on your 'restaurant-wrapper' selector to 2000. If that doesn't work I had also changed the css selector to 'ul.vendor-list li' and it was working fine but I think it was my change to the delay that made it work.

Changing the selector is the key, as only the first set of list items follows the pattern ".vendor-list figure.item" and everything after the first scroll will not be scraped. To select all of the items you need to use somethnig like ".vendor-list > li" Here is a working sitemap:

{"_id":"nimmana-haeminda","startUrl":["https://www.foodpanda.co.th/restaurants/lat/18.7979842/lng/98.96614459999999/city/Chang%20Wat%20Chiang%20Mai/address/Baan%20Thai%20Apartment%2C%2036%20Nimmana%20Haeminda%20Rd%20Soi%206%2C%20Tambon%20Su%20Thep%2C%20Amphoe%20Mueang%20Chiang%20Mai%2C%20Chang%20Wat%20Chiang%20Mai%2050200%2C%20Thailand/Nimmana%20Haeminda%20Road%20Soi%206/Baan%20Thai%20Apartment%2036?postcode=Tambon+Su+Thep&verticalTab=restaurants"],"selectors":[{"id":"restaurant-wrapper","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":".vendor-list > li","multiple":true,"delay":"1500"},{"id":"restaurant-name","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"span.name","multiple":false,"regex":"","delay":0},{"id":"restaurant-rating","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":".rating strong","multiple":false,"regex":"","delay":0},{"id":"restaurant-comments","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"span.count","multiple":false,"regex":"","delay":0},{"id":"restaurant-cuisine","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":".vendor-characteristic span","multiple":false,"regex":"","delay":0},{"id":"restaurant-deliveryfee","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"li.delivery-fee","multiple":false,"regex":"","delay":0},{"id":"restaurant-deliverytime","type":"SelectorText","parentSelectors":["restaurant-wrapper"],"selector":"span.badge-info","multiple":false,"regex":"","delay":0}]}