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

Scroll freezing issue on chrome android #81

Closed
larenemarno opened this issue Apr 2, 2024 · 5 comments
Closed

Scroll freezing issue on chrome android #81

larenemarno opened this issue Apr 2, 2024 · 5 comments

Comments

@larenemarno
Copy link

I would like to thanks for this cool project. It has ton of useful features that I really love. The markdown editor and image viewer are my favorite. I believe it deserves more stars!

I run this on termux with my spare android phone since mid of last year and everything looks great until I have updated to version where it introduces new feature with big thumbnails (sorry didn't remember which version it was). I occasionally get the scroll bar missing and could not scroll the screen either vertical or horizontal. I have always set the thumbnails and "3x" button on. It looks like it happened when I use chrome on android tablet or phone. Does anyone has ever get the same issue? Sorry, I can not reproduce this issue due to the randomness of it occurrence. Refreshing the whole page always fix the problem.

Thanks!

@9001
Copy link
Owner

9001 commented Apr 2, 2024

Hi! Thanks for using copyparty :-) Happy to hear you're finding it so useful!

Unfortunately I haven't encountered this issue myself, but I'll definitely be on the lookout.

The only idea I have right now is that it might be due to your browser deciding to resize the viewport, and then lie to the javascript about the true dimensions... The mobile browsers tend to do this. The next time it happens, please try zooming out on the page (the same way you normally do that, by pinching two fingers together), and see if that fixes it :>

But it is interesting that you didn't encounter this before version 1.10.1 or so (when the 3x button was added), so I'll take a closer look at the changes around then 👍

EDIT#3: One more thing to try if it happens again is to turn the 3x button off and on again, and see if that fixes it -- that's not a solution of course, but could help figure out what's going on.

EDIT#1: Just in case I'd like to give you a beta build to test some changes with -- how are you running copyparty in termux? Like, did you follow the android instructions in the readme or are you perhaps running the copyparty-sfx.py somehow instead?

EDIT#2: Also, could you please tell me the user-agent of the chrome browser that the issue occurs on? You'll see it if you visit https://ocv.me/js/ with that browser, it's the lines of text starting with "Mozilla/5" something.

@9001 9001 closed this as completed in 9c42cbe Apr 3, 2024
@9001
Copy link
Owner

9001 commented Apr 3, 2024

Okay, I have a sneaking suspicion of what's causing this... so here's a beta which might fix it:

if you installed copyparty by following the android instructions in the readme, then you can install this beta with the following command:

python -m pip install --user -U --force-reinstall https://ocv.me/copyparty/beta/copyparty-1.11.2.11-py3-none-any.whl &&
echo ok || echo error

however, if you are running copyparty-sfx.py instead, then you can download the beta here: https://ocv.me/copyparty/beta/copyparty-sfx.py

Let me know how it goes :-)

@larenemarno
Copy link
Author

Hi @9001 Thanks a lot for your time and effort on trying to fix this issue. I really appreciate that.

Apologize regarding couple of your questions that don't get answered in time. I forgot to mention that I did couple of things like toggle the 3X button on and off. As far as I can remember I also try to zoom in or out the browser as per your suggestion. I tried anything possible that may trigger some events that probably unfreeze it. But then I give up and just refresh the browser and it get back to normal. Whenever this "freezing" happens the only thing that didn't work is scrolling up/down the window. The items displayed remained accessible eg when I tap on a thumbnail of image it will still show the full size on that image.

Just in case I'd like to give you a beta build to test some changes with -- how are you running copyparty in termux? Like, did you follow the android instructions in the readme or are you perhaps running the copyparty-sfx.py somehow instead?

I'm running the copyparty-sfx.py as I keep following the update.

Also, could you please tell me the user-agent of the chrome browser that the issue occurs on? You'll see it if you visit https://ocv.me/js/ with that browser, it's the lines of text starting with "Mozilla/5" something.

It says:
Mozilla/5.0 (Linux; Android 10; K)
AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/123.0.0.0 Mobile Safari/537.36

I have downloaded the beta copyparty-sfx.py replacing my current copy and rerun it now. I'm using copyparty daily to keep some notes and store some photos or images I like to share with my family. First impression it feels snappier or it was just me. :-) I'll try to tap around more later.

I will let you know if I found something and if I haven't get back to you with any comment until next week then let's say it's all good. But again as this is hard to reproduce I will be OK to just doing browser refresh once in a while. :-)

Thanks for your quick response and the effort to fix this issue!

@icxes
Copy link
Contributor

icxes commented Apr 9, 2024

Not sure if it's related, but I can reproduce this consistently on mobile Firefox by opening an image in the viewer then swiping from the right (or any other method of going back in page history). The scrolling doesn't work until page refresh or opening an image again.

@9001 9001 reopened this Apr 9, 2024
@9001
Copy link
Owner

9001 commented Apr 9, 2024

awesome, yep that's another way to trigger it -- I'll think of a more robust catch-all for these 👌

@9001 9001 closed this as completed in 4f0cad5 Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants