Jump to content
Search Community

IOS - Draggable stop working when leave video fullscreen

Webls
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Posted

Hello all,

 

I am working with draggable plugin to create a carousel which includes one (or several) HTML5 video inside each pane.

 

I found an issue on iphone  (iOS 9, 10+) devices when user goes to fullscreen for video and then exit fullscreen.

 

As you will see in the example below, when you leave fullscreen on iPhone, drag stop working.

 

 

The fix I found, (which is not a fix by the way!) is to add a "touchend" event in order to call Draggable.endDrag() which bring back the scroll (but it means you need to drag once to be able to scroll after ! (I tried to call startDrag en "touchstart" event but it didn't work.

 

 

The best way would be to call Draggable.dradEnd() when video exits fullscreen but as we cannot listen to video enter/exit fullscreen on iOS, it is not possible :(

 

 

I noticed that if i remove the viewport meta tag, drag works perfectly after exit video fullscreen, but same, it is not a solution.

 

Do you have any idea how to fix that ?

Thanks !

 

Issue can be reproduced here  :

 

http://codepen.io/webls/pen/WREarq

 

 

See the Pen WREarq by webls (@webls) on CodePen.

Posted

Hello Webls and Welcome to the GreenSock Forum

 

We are sorry you are having this issue!

  • What iOS version are you using?

To make it easier for use to debug this, can you please convert your example to a limited codepen demo example?

 

This way we can test your code live in an editable environment.

 

 

Thank You! :)

  • Like 2
Posted

Hello Jonathan,

I created the codepen, available here :

See the Pen WREarq by webls (@webls) on CodePen.

 

The issue can be reproduced on Safari, iOS9, 10+ on iPhone and iPad

 

Thanks.

Posted

Hi again,

do you have any idea how I can fix that issue ?

 

Thanks for your help.

Posted

Hello Webls, Please standby while we look into this.

 

And thank you for creating the codepen! :)

  • 3 weeks later...
Posted

Hi all,

does anyone got this issue before ?

 

Thanks a lot.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...