What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Waiting feedback Browser Back Function Not Working As Expected

Discussion in 'Bug Reports' started by In Social, May 8, 2014.

  1. In Social

    In Social Authorized Member Authorized

    I've tested this in latest Firefox and Chrome and though I think I understand why it is happening, it creates a usability issue that makes it seem as if the site is broken.

    If you start at the album list (http://www.sonnb.com/gallery/) open an album (http://www.sonnb.com/gallery/albums/my-album.125/) and click on any photo, then click forward or back and scroll through a few photos.

    Then, click the X to close the overlay.

    Now, try hitting back on the browser. The screen appears to stay static. What is actually happening is that the browser is backing through the URLs of each photo that was previously navigated.

    Another issue is that with the overlay open, each time you click to a new image, the URL changes. However, when you click back on the browser, with the overlay open, the URL goes back but the image stays the same.

    I'm thinking that there is a better way to do this. When you open the overlay to scroll through the photos, it should be a unique session so that when you close the overlay and click back it takes you back to the album list.
     
  2. sonnb

    sonnb Administrator Staff Member

    This is known issue. Currently it is limitation as we use HTML5 history but the photos are overlay which cannot be re-opened by history back button.
     
  3. In Social

    In Social Authorized Member Authorized

    I see. I do notice that native Xenforo attachment viewer does not have this behavior. If I open an attachment in a thread and scroll through the images, then back works as expected.

    Maybe you could just use this method?
     
  4. sonnb

    sonnb Administrator Staff Member

    Are you sure back button in Browsers work with it? It seems I cannot use it.
     
  5. In Social

    In Social Authorized Member Authorized

    test
     

    Attached Files:

    • 2.jpg
      2.jpg
      File size:
      479.8 KB
      Views:
      0
    • 1.jpg
      1.jpg
      File size:
      1.4 MB
      Views:
      0
    • 3.jpg
      3.jpg
      File size:
      985.7 KB
      Views:
      0
  6. In Social

    In Social Authorized Member Authorized

    Working for me in Firefox, see above. In Chrome it just opens each image individually, though.
     
  7. sonnb

    sonnb Administrator Staff Member

    I am not sure if I am understanding what you mean but back is not visible in FF

    upload_2014-5-8_23-53-54.png
     
  8. In Social

    In Social Authorized Member Authorized

    If you start from somewhere else, then click this thread, then open an attachment and scroll through the photos, then close the overlay, then click back, you will be back to the page you started from.

    I realize that back button won't scroll back through photos, that is to be expected as you use the arrows in the overlay.

    The issue with Xengallery is that if you start from the album list, open an album and scroll through the photos, then close the overlay, you have to click back several times to get back to the album list. Perhaps you could disable the browser back while the overlay is open, like Xenforo native does?
     
  9. sonnb

    sonnb Administrator Staff Member

    Okay, I see what you mean. The XenForo attachment viewer just does nothing, it is normal behaviour of browsers. XenGallery has added HTML5 history URL which you will see the URL changed but the page was not refreshed. But of course, it is not perfect yet, I will improve it some way.
     
  10. In Social

    In Social Authorized Member Authorized

    From a usability standpoint, I think it is better to do nothing than to create a situation where pressing back doesn't change the screen. It would be great if the browser could know to update the displayed image when back was pressed, but until this is the case I would recommend just disabling the URL history while scrolling through photos.
     
  11. sonnb

    sonnb Administrator Staff Member

    This has been implemented in 2.1.5.
     
  12. Mitch Lowther

    Mitch Lowther Authorized Member Authorized

    hello, just wondering if this site is using 2.1.5? because the back button functionality isn't working normal in safari 6.0.4.
    It only stops working when you have clicked on an individual photo and the overlay displays. If you close the screen you can't click back to exit the gallery. it's the same on this website.. just FYI.
    Was here to purchase but i noticed this in the demo version on this site..
     
  13. In Social

    In Social Authorized Member Authorized

    I have installed 2.1.5 and the back functionality is still broken in Firefox and Safari.
     
    Mitch Lowther likes this.
  14. sonnb

    sonnb Administrator Staff Member

    I will check it.
     

Share This Page