Tagged: autoscroll, page jumping up
-
AuthorPosts
-
October 9, 2024 at 8:10 am #1468706
When you get down to the footer on iPhone, the site automatically jumps up the page – what is causing this?
[video src="https://coralstarfish-com.stackstaging.com/wp-content/uploads/2024/10/Footer-jumping-bug.mp4" /]
- This topic was modified 1 month, 1 week ago by whdsolutions.
- This topic was modified 1 month, 1 week ago by whdsolutions.
October 9, 2024 at 8:11 am #1468707Your help is as always appreciated
October 10, 2024 at 11:25 am #1468793Any takers?
October 10, 2024 at 12:45 pm #1468798Unfortunately, due to a lack of developer tools, mobile browsers cannot be tested in the same way as desktop browsers. Unfortunately, the emulators aren’t accurate enough.
Since scrolling is triggered by a swipe (touch), I suspect that you could, for example, slightly touch a button which then gets the focus.
This is very speculative, but worth a try.Try ( in this case only for that page-id of https://coralstarfish-com.stackstaging.com ) in your child-theme functions.php:
function blur_all_avia_buttons() { if(is_page(22)){ ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($){ $('.avia-button').addClass('btn-blur'); $('.avia-button.btn-blur').on('mousedown touchstart', function(){ $(this).blur(); }); })(jQuery); }); </script> <?php } } add_action('wp_footer', 'blur_all_avia_buttons');
Please delete the caches, especially in the mobile device itself.
October 10, 2024 at 12:53 pm #1468799I’ll give that a try and get back to you – thank you.
October 10, 2024 at 1:06 pm #1468804or it belongs to viewport height bug on safari mobile.
try instead in quick css:
.avia-safari body { height: 100vh; } @supports (-webkit-touch-callout: none) { body { height: -webkit-fill-available; } }
October 10, 2024 at 2:17 pm #1468811They have done the trick – thank you!
October 10, 2024 at 3:04 pm #1468813what was the solution? first snippet or css bug fix?
November 10, 2024 at 12:57 pm #1470999This seems to be happening again! ;-(
November 10, 2024 at 5:05 pm #1471016is it in all browsers or only in safari?
Did you update ( i guess yesterday was the last IOS Update)?On some pages i read about an additonal css hack
so a combination might be:.avia-safari.touch-device body { height: 100vh; overflow-y: scroll; } @supports (-webkit-touch-callout: none) { body { height: -webkit-fill-available; -webkit-overflow-scrolling: touch; } }
sometimes i read about conflicts with gsap ( and i believe that advanced layer slider uses some parts of that scripts )
by the way – where do you show the address bar of your mobile device – iOS devices can show it on top or at the bottom.
the position on the bottom seems to be more vulnerable to this. -
AuthorPosts
- You must be logged in to reply to this topic.