Jump to content
Search Community

IOS - Draggable stop working when leave video fullscreen

Webls test
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

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  :





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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 3 weeks later...

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...