Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll not working on Android Chrome only

For some reason scroll doesn't work on Android Devices in Chrome browser only.

You can see the site at Peshkuiarte.com/mobile

I have tried:

    $(document).ready(function() {
      $('body').css('touch-action', 'auto');
  });

I can't seem to figure it out ... Any help would be greatly appreciated

like image 318
Shpat Avatar asked Dec 05 '25 13:12

Shpat


1 Answers

By scroll do you mean dragging the page with your finger on mobile?

You've set -webkit-user-drag: none; as an inline style for body, which might be the cause.

It's a Webkit-specific property:

CSS property: -webkit-user-drag

Description

Specifies that an entire element should be draggable instead of its contents.

Syntax

-webkit-user-drag: auto | element | none;

Values

  • auto The default dragging behavior is used.

  • element The entire element is draggable instead of its contents.

  • none The element cannot be dragged at all.

It's supported by Chrome 1-17 and Safari 3-5.1: http://www.browsersupport.net/CSS/-webkit-user-drag

like image 178
red Avatar answered Dec 07 '25 03:12

red



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!