Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1
  • 2

TOPIC:

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15016

  • Apparound
  • Apparound's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Hi,
I've followed your instructions but double tap zoom does not work.
It seems that I need to set also _g_zoom_step, because without a value the default is 0 and so it is not possible to zoom double tapping.
Is _g_zoom_step also mandatory? if so, possible values are 0 and 1? Again, how can I preserve the previous version's behavior?

Finally, can you please tell me if there are other mandatory setting for preventing regressions after updating to version 3.61?

Thanks a lot for your support

Please Log in or Create an account to join the conversation.

Last edit: by Apparound.

iOS PDFViewer (CALayer) 3.61 - g_layout_zoom_level 3 years 11 months ago #15017

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
In previous version the zoom step had value 2 as default, now that the iOS SDK is aligned with Android version there's the new g_zoom_step global that permit you to set the zoom step value.
To reproduce old version's zoom behavior you should set g_layout_zoom_level. g_zoom_level and g_zoom_step in RDVGlobal class like this:
_g_zoom_level = 2; //double tap, (2-5)
_g_layout_zoom_level = 15; //pinch to zoom
_g_zoom_step = 2;
Every globals are mandatory to permit SDK working well, if you want to know more about all globals that SDK 3.61 has I suggest you to see our knowledge base here

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum