Primeng: Body scrolls on touch devices when p-dialog is open, even with blockScroll="true"

Created on 22 Mar 2018  路  7Comments  路  Source: primefaces/primeng

The newly added [blockScroll]="true" property for p-dialog works excellently on desktop. However mobile/touch devices (in this case, an iPhone 7+ on the latest version of iOS) don't seem to honor this requirement. When I open a dialog with overflowing content and try to scroll down (swiping my finger up/down), it scrolls the body (the content _behind_ the dialog) instead of the dialog content itself.

Inside the chrome/safari/firefox dev tools, this issue is not present. It only happens on physical touch devices. I don't have an android device to test this on, but right now I'm able to confirm this behavior on ipad/iphone with the latest version of iOS, Angular, and PrimeNG .

defect

Most helpful comment

I can also reproduce this issue with my iPhone 6. I have the latest version of iOS and am using Angular 5.2.0 and PrimeNG 5.2.0.

All 7 comments

I can also reproduce this issue with my iPhone 6. I have the latest version of iOS and am using Angular 5.2.0 and PrimeNG 5.2.0.

It still occurs in the last version of ios e primeng 5.2.6. On any android works properly.

Facing the same issue (swiping my finger up/down), it scrolls the body ,the content behind the dialog) in IPad. Is this issue getting fixed?

Wait, guys, you can't do this!

This breaks normal behavior. See here: http://jsfiddle.net/mmavko/hLu25v63/7/

Reopen this issue after revert in 5b41a3b?
Still got the problem on PrimeNG 6.1.4 (tested on iPad Air 2 - iOS 12.0)

Is this going to be re-opened or has it been addressed by another issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Helayxa picture Helayxa  路  3Comments

gatapia picture gatapia  路  3Comments

mitosandov picture mitosandov  路  3Comments

philly-vanilly picture philly-vanilly  路  3Comments

cyberrranger picture cyberrranger  路  3Comments