At present it just contains two functions (GW_PAGE_SCALE and GW_MODIFY_VIEWPORT), but the idea is for it to grow to include additional (small) misc utility functions which could be useful to developers using the GW Library.
If you have suggestions for additional functions to be created and included, or functions which you would like to contribute to the lib, please don't hesitate to raise the issue in the forum (if possible in this thread).
I called them GW_GET_WINDOW_WIDTH and GW_GET_WINDOW_HEIGHT because I thought it was more understandable, but the JS code is anyway document.documentElement.clientWidth. Do you think we should use CLIENT instead of WINDOW?
Even about the JS code I saw on the net different schools of thought on how to compute width/height: - document.documentElement.clientWidth --> should not consider scroll bar - window.innerWidth --> considers scroll bar - verge.viewportW --> viewport width in pixels (should be similar to window.innerWidth)
Actually it doesn't seem to me that GW_PAGE _SCALE and GW_MODIFY_VIEWPORT are incompatible with each other. Have a look at the following demo, it renders a page initially scaled to the screen, but also pinchable to zoom in up to 1.5 times.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum