Skip to content

Scrolling viewport not possible via touch on carousel on Windows Mobile devices #100

Closed

Description

@scotta98

Hello, Thanks so much for your work. We have run into a problem implementing this on our mobile site. In our use we open up the mobile page with the site header and then the image gallery. We've found that when users go to swipe the page up to view details under the gallery, they are not able to. They are actually trying to swipe up on the gallery itself and the page will not move. Any suggestions of a work around? Thanks.

Activity

  1. blueimp commented on Dec 10, 2013

    @blueimp
    Owner

    If the Gallery is part of the page, the carousel option should be set to true, which should allow to scroll the page when swiping up and down.
    As this works in my tests I'll close this issue for now, but please feel free to provide further information if you still encounter this problem even with the carousel setting enabled.

  2. scotta98 commented on Dec 11, 2013

    @scotta98
    Author

    Thanks for that bit of advice. I would like to update you with what we have found; When we set the carousel option to true, the images automatically scroll. We've decided that the best option for us is to set the image scroll to 10 minutes as we would prefer the images to be swiped and not rotate every few seconds. This also takes care of the disappearing image problem we had when we had that option set to false. (the entire carousel would disappear when we swiped up).

    The original problem however still exists. On a small device (phones in general) our image takes up a fairly large portion of the viewable page. When a user swipes up, he is actually swiping up on the carousel. The problem is, the page does not move when this is done. They have to find some white space outside of the area of the carousel to swipe in order for the page to move up and down.

    I'd appreciate any suggestions and would also like to again say thanks for a great bit of work. Best regards.

    I'd be happy to supply an example if you wish?

  3. blueimp commented on Dec 11, 2013

    @blueimp
    Owner

    Hmm, I'm sorry but I cannot reproduce the swiping problem on mobile devices.

    I just tested it again with my own hardware iPhone on the demo and swiping across the carousel galleries in y direction scrolled the viewport as expected.

  4. scotta98 commented on Dec 11, 2013

    @scotta98
    Author

    I am sorry to have wasted your time. There is an issue as described but as I look into it further, it seems limited to IE on Windows Phone 8 and IE11 on my desktop HP TouchSmart desktop running Win8 and Surface RT Tablet. It works as you described on my Android.

  5. blueimp commented on Dec 11, 2013

    @blueimp
    Owner

    Confirmed on IE on a windows mobile device (Nokia Lumia 520).
    I've reopened this issue and updated the title:
    "Scrolling viewport not possible via touch on carousel on Windows Mobile devices"

  6. blueimp commented on Dec 11, 2013

    @blueimp
    Owner

    This is very likely caused via the following CSS setting:

    -ms-touch-action: none;

    This setting is required for proper horizontal swipe support, but maybe it's feasible to set it to pan-y instead:

    -ms-touch-action: pan-y;
    

    http://msdn.microsoft.com/en-us/library/windows/apps/hh767313.aspx

  7. scotta98 commented on Dec 11, 2013

    @scotta98
    Author

    Will test and update the issue tomorrow. Thanks for the help!

  8. scotta98 commented on Dec 12, 2013

    @scotta98
    Author

    Fix works but now if you hold the image and swipe sharply, the image & gallery will disappear. True on Android, WP, even Windows desktop using mouse.

  9. blueimp commented on Dec 12, 2013

    @blueimp
    Owner

    Thanks!
    So I'll include this fix in the carousel styles.

  10. scotta98 commented on Dec 12, 2013

    @scotta98
    Author

    Please check updated comment. It has unintended consequences.

    From: Sebastian Tschan [mailto:notifications@github.com]
    Sent: Thursday, December 12, 2013 9:58 AM
    To: blueimp/Gallery
    Cc: Scott Anderson
    Subject: Re: [Gallery] Scrolling viewport not possible via touch on carousel on Windows Mobile devices (#100)

    Thanks!
    So I'll include this fix in the carousel styles.

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/100#issuecomment-30428898.

  11. scotta98 commented on Dec 12, 2013

    @scotta98
    Author

    Please forgive my confusion. The dev change the carousel to false hence my previous edits..

    The fix works and is tested on WP7, WP8 stock browsers. Surface RT 8.1 IE11 & Windows 8.1 IE11.

    On WP 8 on UC Browser from the store, when the image is swiped up, the carousel is hidden completely and you must refresh in order to see images again

  12. blueimp commented on Dec 12, 2013

    @blueimp
    Owner

    Yeah, the carousel on swipe up should only happen if the carousel option is not set to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions