Issue w/ Pagination Reset on Scroll (Mobile Only)

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Issue w/ Pagination Reset on Scroll (Mobile Only)

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20464
    thishandle
    thishandle
    Participant

    The issue is stemming from pagination being reset when the viewport is resized. On mobile devices the viewport size is altered when the user scrolls up or down due to the browser bar and/or controls of the browser expanding/minifying.

    While I understand this not your problem or an actual error (poor mobile implementation on the part of chrome/safari/etc), I was hoping you may have a simple solution to disable the reseting pagination functionality?

    Thanks in advance!

    #20474
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I am afraid this cannot be turned off now. The Isotope rows count can change during the orientation change (due to different screen widths), and that may result in different item numbers per page, and different number of pages. There are lots of other issues with it as well, so the script simply resets the isotope handler, and reverts it to the first page automatically.

    I have noted this, as there were an update to some of the 3rd party scripts (including the isotope script), so I will investigate this before the upcoming release. Maybe there is a way now to bypass this ‘reset’ or only trigger it when it is absolutely neccessary.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #20521
    thishandle
    thishandle
    Participant

    Thank you for your response!

    When do you anticipate the next update release?

    In the meantime, is there anyway to define results/pagination for the search to workaround the problem? I assume this issue is affecting all users. Any help in creating a temporary solution would be greatly appreciated.

    Thanks again!

    #20522
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    First week of January for sure.

    Unfortunately I don’t think there is a temporary way around this. The pagination ‘reset’ is intentional, and is hard-coded into the plugin main script file. Turning it off manually by editing the code will not help, it will make the matter even worse, as the isotope script will malfunction, and the pagination won’t work anymore. This is basically a bypass solution for a much bigger issue. It was an accepptable solution as orientation change during a search pagination does not happen too often, at least it was not reported to be an issue until now.
    The only possible solution I can see in this case is to correct the core script file, to include a detection of page number changes, and reset to the last known position if possible.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #21219
    thishandle
    thishandle
    Participant

    Hi,

    I am unable to update the Ajax Search Pro plugin on this site from version 3.5 to the new version 4.15 to see if pagination issues have resolved with the new plugin.

    I followed instructions from the Safe Update Guide (https://documentation.ajaxsearchpro.com/plugin-updates/safe-update-guide). Cleared cache and all. The search does not show any results. I have to restore the old plugin and restore database in order for search to work again.

    Any guidance?

    #21222
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Version 3.5 was released 5 years ago, there have been 59 (!!) updates between the latest release and version 3.5. While I try to maintain transparency between versions, there is unfortunately no capacity to test all the way back with very old releases, I don’t think there is a way to update that to the latest release without any issues.

    I think the best possible option in this case is:
    – Make sure to have a back-up
    – Then Install the new release first
    – Then completely wiping all the data via the plugin Maintenance panel
    – Then installing the new version again

    This will clear any remnants of the old version, and perform a clear installation instead.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.