Embedded PDF not possible with V1.99 on touchscreen capable device
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:
-
Try to use embedded PDFViewer - e.g. in SAP application hcm/fab/mypaystubs
-
System detects that any touch screen laptop (and some remote desktops) are "tablets"

-
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
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
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