I’ve been getting to grips with the new interactions functionality. It works great on my windows laptop. On my iphone, the momentum scrolling or deceleration is causing animation glitches. Any idea how I can make this not glitch on iphone? Try tapping up and down with your thumb. You will see the box jump.
Tested the animation with Xcode in My iMac on the iPhone 8 IOS 13.2 and I don’t see any issues!
Xcode simulator is very accurate.
On my old iPad IOS 9.3.5 I see a issue, the square only go’s from bottom to top in a strait line at the left side.
On a new iPad with IOS 13.2 I see no issues.
What is your iPhone model and IOS version I can use it to test your animation.
I keep the animations mostly away from mobile devices, because it’s asking for trouble! like this with a little line of JavaScript!
`if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
// some code…
}else
{
//Now include js files
/////////////////////////
Did you try updating to the latest OS? Because here I see no issues in 13.2.
Don’t guaranty it will solve the problem, but at least you know then it’s not IOS.
If that doesn’t solve the problem I would contact support!
So I updated iOS. It still does it but I have worked out why. When I scroll down it brings in the url bar and the bottom bar. This is changing the scroll position. When you scroll up it doesn’t do it. I wonder if there is a way to make the scroll position not be influenced my safaris chrome. Maybe I could give the html element some space at the bottom of the viewport.
I think support could fix it maybe by using this method:
The problem is that the inner height of the browser changes as you scroll on mobile safari due to the hiding and showing of the url bar and browser chrome.
If the interaction js could be modified to use this ios inner height function to calculate the animation timeline position, I think that should fix it.
I worry though how it would affect performance.
Another solution would be a hack to make mobile safari permanently show the url bar chrome and bottom controls. I haven’t been able to find one.
making effective use of the transform and transition properties in CSS is not super complicated and PG supports both fairly well.
a bit of visual interest is more than enough, and anyone who want’s to have all these things bouncing around and creating distractions, probably don’t have very interesting content anyway.