snapdrop icon indicating copy to clipboard operation
snapdrop copied to clipboard

Flickering due to scrollbar in desktop PWA

Open abhijit-hota opened this issue 5 years ago • 8 comments

Environment

  • OS: Windows 10
  • Browser: MS Edge 87.0.664.60

The Issue

In the PWA installed from MS Edge, when the info icon is clicked, the splash screen shows up but the scrollbar repeatedly comes and goes from the view, making it really unsmooth.

lol

Note

It runs smoothly in the browser but not in the PWA.


P.S. Thanks for the awesome app, @RobinLinus !

abhijit-hota avatar Dec 13 '20 07:12 abhijit-hota

I've seen this on some other apps as well. I'm running on MacOS and I don't have that issue due to how the scrollbar is handled.

Would a simple fix be to just completely disable the scrolls? with overflow: hidden ?

titivermeesch avatar Dec 20 '20 12:12 titivermeesch

Would a simple fix be to just completely disable the scrolls? with overflow: hidden ?

If I'm looking at the right part of code, the property is already there.

https://github.com/RobinLinus/snapdrop/blob/585a3d02fd2f69fa2afa99a02e9572e7d149ebf4/client/styles.css#L16-L23

abhijit-hota avatar Dec 23 '20 14:12 abhijit-hota

Only overflow-x is hidden, however overflow-y is not because sth like overflow-y:auto is required to use the "pull down to reload the page"-feature on Android. I tried to fix it in a9f9ee73599b19feefe131bbf14a0ef97505e040 using a CSS browser detection hack.

Does that work for you?

EDIT: Looks like this browser detection hack works only for Edge version < 79...

RobinLinus avatar Dec 28 '20 19:12 RobinLinus

Still having the problem. :/

Please note that I don't have problems in the website. Only in the PWA

abhijit-hota avatar Dec 28 '20 19:12 abhijit-hota

@abhijit-hota, your MS Edge is the "old" or the "new" version? I am asking this because, as far as I know, the "new" is based by Chromium... So, I think that the problem can be either a "config" for MS browsers on CSSs or a MS Edge bug, because I've tested Snapdrop PWA on Chrome, but it works correctly...

Bellisario avatar Dec 30 '20 19:12 Bellisario

@Bellisario It's the new version which is made on Chromium.

abhijit-hota avatar Dec 31 '20 03:12 abhijit-hota

This is an example of MS Edge scroll issue: https://answers.microsoft.com/en-us/edge/forum/edge_issue-edge_win10/microsoft-edge-have-flicker-issues-with-scroll/de78d2b5-a229-483a-8d71-d23bf7efda1b

It's only an example of many others: I think that it's their issue, because this browser, strangely, has problems with scroll... :open_mouth:

Bellisario avatar Dec 31 '20 10:12 Bellisario

I've observed this behavior in Chromium 98 (Windows 10), both Chrome and Edge flavors, without any PWA install or browser extensions. Adding overflow: hidden; or overflow-y: hidden; to the root html element fixes it.

lionel-rowe avatar Feb 11 '22 17:02 lionel-rowe