body-scroll-lock icon indicating copy to clipboard operation
body-scroll-lock copied to clipboard

Doesn't work on Android webview

Open Bobgy opened this issue 6 years ago • 8 comments

I've tried this and it works on almost everywhere except Android webview.

I don't quite understand why it could be different between chrome 70 in browser vs chrome 70 in webview, but I am seeing this issue.

Current Behavior in Android webview: when you scroll the scrollable overlay to one end, then it starts to scroll body instead. Expected Behavior in Android webview: when you scroll the scrollable overlay to one end, then it stops there without doing anything else.

Note that in Android Chrome, it behaves as expected.

Bobgy avatar Dec 23 '18 16:12 Bobgy

Same for me

GulinSS avatar Dec 24 '18 17:12 GulinSS

Same for me

ml-andy avatar Feb 22 '19 02:02 ml-andy

Same for me

manuel140 avatar Mar 11 '19 17:03 manuel140

same here

hoyangtsai avatar Apr 03 '19 07:04 hoyangtsai

hey guys, how about trying this https://github.com/tuateam/tua-body-scroll-lock

BuptStEve avatar Apr 03 '19 08:04 BuptStEve

@Bobgy it works. But I think this is a bug of Android webview, maybe there is a bug report of that project?

zhangciwu avatar Jun 13 '19 10:06 zhangciwu

Same problem, doesn't work in webview

eugeneoshepkov avatar Jun 19 '19 11:06 eugeneoshepkov

I had this same problem developing a webview with Angular. I needed to create a list of cards in a horizontal scroll and for some reason it wasn't working.

Strangely this line of code solved my problem, even though it did "nothing".

ngAfterViewInit(){ fromEvent(this.scrollElement, 'touchend').pipe(takeUntil(this.unsubscribe$)).subscribe(); }

juliocbgomes avatar Apr 28 '22 21:04 juliocbgomes