Allow swiping while zoomed in to mobile viewer

閲覧: 46 回
最初の未読メッセージにスキップ

Matt Parizeau

未読、
2015/02/26 15:15:132015/02/26
To: pdfnet-w...@googlegroups.com
Q:

Is it possible to allow pages to be changed when the mobile viewer is zoomed in?

A:

You just need to make a small adjustment to MobileReaderControl.js. Find the onSwipe function and in the first if statement remove me.isZoomedIn() and me.recentlyZoomed. Once those are removed you'll be able to swipe even when the current page is zoomed in.

Donald Gordon

未読、
2016/10/31 13:17:442016/10/31
To: PDFTron WebViewer
Hi

This isn't working with current WebViewer.

Steps to reproduce:
  • download latest webviewer from PDFTron site and unzip
  • edit WebViewer/lib/html5/MobileReaderControl.js to remove me.isZoomedIn() and me.recentlyZoomed from the if statement on line 2248.
  • spin up your favourite webserver serving out of the WebViewer folder
  • Navigate to http://[ip]:[port]/doc/WebViewer_User_Guide.html in Safari on an iPad
  • Double tap to zoom in
  • Swipe left to switch to page 2
  • Notice that you're still on page 1
Could you provide a workaround or bugfix?

Regards

Donald

Matt Parizeau

未読、
2016/11/01 19:53:372016/11/01
To: PDFTron WebViewer
Hi Donald,

Thanks for the steps, we were able to reproduce the problem. To fix this you can make one small change to the bindEvents function in MobileReaderControl.js. Change me.$viewerPage.bind('swipeleft swiperight') to me.$wrapper.bind(...)
This change will be included in future WebViewer releases.

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Donald Gordon

未読、
2016/11/02 12:35:032016/11/02
To: PDFTron WebViewer
Thanks Matt!
全員に返信
投稿者に返信
転送
新着メール 0 件