Jump to content
GreenSock

ugo

Draggable - Releasing a draggable element doesnt clean the X/Y coordinates in Low Power Mode

Moderator Tag

Recommended Posts

Hey, I'm facing an issue that i cant find any solution, i have tried different way to fix it but unfortunately, none of them are working. The issue is only reproducible from a real device when being set in Low Power Mode / Battery Saving mode. It seems like that whenever you are releasing the element, an then you start to grab it again, the latest will keep the previous last X/Y coordinates, ending with creating a gab between the element and the cursor/finger position when triggering the onPress.

Solution I have tried, applying a gsap.set(element, { x: 0, y: 0 }) after releasing the element, calling the draggable.update() function after that.

I'll be keen to be helped out on that issue.

Thanks a lot in advance

Link to comment
Share on other sites

Hi,

 

Can you create a minimal demo that we can take a look at in our devices in order to test?

 

Thanks!

Link to comment
Share on other sites

  • 5 weeks later...

I dont do anything in particular in the draggable, you can easily reproduce with a regular demo from a phone in a low power mode 

Link to comment
Share on other sites

1 hour ago, ugo said:

you can easily reproduce with a regular demo

 

@ugo great! Can you please provide one? Just tested the following pen on an iPhone 12 Pro Max in low power mode, with no issues. 

 

See the Pen LYZBaoR by GreenSock (@GreenSock) on CodePen

  • Like 2
Link to comment
Share on other sites

Hi,

 

I just tested the codepen example linked by @mvaneijgen in low power mode on android and ios without any issues, so as Mitchel mentions, please provide an example where this is not working as expected please.

 

Happy Tweening!

  • Like 1
Link to comment
Share on other sites

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