probe & zoom js combined problems

77 views
Skip to first unread message

Ncumm

unread,
May 5, 2016, 8:04:36 AM5/5/16
to iScroll
I'm developing an app... I started with probe.js and everything was working fine.  I decided to add zoom.js to it, the zoom works but some of the other functions in probe became unstable (swipe left and right don't work, + app became jittery)...  

Questions:
Is it possible to use probe.js & zoom.js together?
if yes (what I'm hoping for) how do I implement it without destabilizing the app?

Your help and experiences will be appreciated.

Neil

Federico Rossi

unread,
Nov 8, 2016, 5:02:36 PM11/8/16
to iScroll
Hi Neil.

I had the same issue. I fixed it using requirejs.
See following example:


require(['iscroll-probe'], function(iscroll_probe) {
    window.IScroll = iscroll_probe;
    require(['iscroll-zoom'], function(iscroll_zoom) {
       window.IScrollZoom = iscroll_zoom;
    });
});
Regards,
Federico
Reply all
Reply to author
Forward
0 new messages