openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Embedded PDF not possible with V1.99 on touchscreen capable device

Open wombling opened this issue 4 years ago • 2 comments

OpenUI5 version: 1.99

Browser/version (+device/version): Chrome Version 99.0.4844.51

Any other tested browsers/devices(OK/FAIL): Edge

URL (minimal example if possible): - n/a

User/password (if required and possible - do not post any confidential information here):

Steps to reproduce the problem:

  1. Try to use embedded PDFViewer - e.g. in SAP application hcm/fab/mypaystubs

  2. System detects that any touch screen laptop (and some remote desktops) are "tablets" image

  3. System refuses to render PDF - but doesn't fail with any sort of helpful error message

What is the expected result? laptops even with touch screens should render embedded PDF

What happens instead? nothing - error.

Any other information? (attach screenshot if possible)

/** * @private */ PDFViewer.prototype._isEmbeddedModeAllowed = function () { //Check if Desktop View is emulated from mobile as well return this._isDisplayTypeAuto() ? Device.system.desktop && !Device.browser.mobile : this._isDisplayTypeEmbedded(); };

this code appears to have changed compared to 1.96 and does not allow embedded mode on touchscreen capable laptop.

Could PDFViewer at least be enhanced so that error message reported if PDFs cannot be show embedded on touchscreen devices?

Thanks,

Chris

wombling avatar Mar 15 '22 12:03 wombling

Hello @wombling

Thank you for sharing this finding, I was able to reproduce the issue. I've created an internal incident 2270028925. The status of the issue will be updated here in GitHub.

Regards, Nikolay

ndeshev avatar Mar 17 '22 05:03 ndeshev

Hi @wombling

Thanks for pointing out this bug. This has been fixed in v1.101 with the change: https://github.com/SAP/openui5/commit/5094c4c98a8ea70fe5d3c535505b05302f8443ee

Regards, Freddy

ghost avatar Mar 28 '22 10:03 ghost