Which product are you using?
PDF.js Express Plus
PDF.js Express Version
8.7.4
Detailed description of issue
In some cases swiping document horizontally scrolls the document vertically. Thus, I want to make it scroll as I swiped.
This only happens on touchable devices with stylus mode on.
However, this can be reproduced using non touchable devices. Open chrome, opening dev tools(F12), toggling device toolbar and reloading page. Select tool button will come out when it worked.
Steps to reproduce:
- Zoom the document so you can scroll the document vertically and horizontally.
- Select Annotation ribbon, and select any of toolgroup tools e.g. freehand toolgroup.
- Swipe the document with finger vertically. The document should scroll vertically.
- Swipe the document with finger horizontally. The document will scroll vertically, not horizontally.
Expected behaviour
On step 4, the document should scroll horizontally.
Does your issue happen with every document, or just one?
Every document
Link to document
N/A
Code snippet
WebViewer({ path: publicPath, initialDoc: inlineUrl, licenseKey: licenseKey, css: cssPass}, element)
.then((instance) => {
instance.Core.documentViewer.enableStylusMode();
Notes
On step 2, when the selected tool was text select button or select tool button, step 4 scrolled vertically as it should be.
Maybe PanTool#switchOut not called properly on swiching back to toolgroups?
Kind regards,
hiraki