Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readmore collapsing on mobile scroll #233

Open
nicksterFL opened this issue Mar 12, 2019 · 16 comments
Open

readmore collapsing on mobile scroll #233

nicksterFL opened this issue Mar 12, 2019 · 16 comments

Comments

@nicksterFL
Copy link

for some reason the readmore container will collapse on mobile when a user scrolls.
If you click the readmore element to expand the container, then scroll on mobile, the container will collapse, while the element still says "read less".

thoughts?

@jedfoster
Copy link
Owner

What version of Readmore.js are you using? What mobile OS/browser?

@pcross1986
Copy link

Oh yes this is an issue I am dealing with now. Ill post the link for the fix when I find it....

@jedfoster
Copy link
Owner

Would it be possible for either of you, @pcross1986 or @nicksterFL, to give version 3.0 a try? https://github.com/jedfoster/Readmore.js/tree/version-3.0

@pcross1986
Copy link

Just saw this... I will let you know when I use version 3

@Chrisser73
Copy link

seems to be fixed in v3.0.0-1 (beta)

@GuySilva
Copy link

Hi,
I'm having this issue both on IOS (Safari and Firefox) and Android.
If I use the DevToolbar on a desktop browser, and simulate an iPhone, for instance, the issue does not present itself, but when I test it on physical devices, the issue persists.
I'm using the latest Readmore version available on GIT, and have tried to implement the solution posted by pcross1986 with no practical results.
Anyone managed to tackle this yet?

@vezhevich
Copy link

vezhevich commented Oct 15, 2021

@GuySilva I ran into the same problem. I cannot solve it. My device iOS safari browser! @jedfoster help

@kevinblackdesk
Copy link

@GuySilva @vezhevich @nicksterFL @pcross1986 it can be fixed by adding the following css:

html,
body {
  -webkit-overflow-scrolling: touch;
}

@vezhevich
Copy link

@kevinblackdesk sorry, it doesn't solve the problem

@kevinblackdesk
Copy link

@vezhevich what about

html,
body {
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@xordiv
Copy link

xordiv commented Dec 13, 2021

I don't know why, but touch scrolling produce 'resize' event.
Now I just delete string window.addEventListener('resize', resizeBoxes); from readmore.js and it solves the problem.

@vezhevich
Copy link

I don't know why, but touch scrolling produce 'resize' event.
Now I just delete string window.addEventListener('resize', resizeBoxes); from readmore.js and it solves the problem.

how version you use?

@xordiv
Copy link

xordiv commented Feb 1, 2022

I don't know why, but touch scrolling produce 'resize' event.
Now I just delete string window.addEventListener('resize', resizeBoxes); from readmore.js and it solves the problem.

how version you use?

2.1.0

@axiaoxin
Copy link

axiaoxin commented Jul 5, 2022

Is there any progress? I also encountered this on iphone safari

@teamaton
Copy link

same problem for us - only on Android devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants