RonFeliciano

RonFeliciano supports this item

Supported

102 comments found.

Hi there!

Is it work with classes? I need to detect if element zoom in or zoom out:

var pz = PinchZoomer.get(“bigImage”), eventCtr = 1; pz.on(PinchZoomer.ZOOM, updateEventLog);

function updateEventLog(e)
{
    var text = "";
if(e.type == PinchZoomer.ZOOM.split(".")[0])
{
    text = "Event: Zoom - Factor: " + pz.zoom();
}
if (pz.zoom() == 2) {
    console.log('zoom in');
}
$("#eventLog").prepend(text + "
");
eventCtr++;
}

But I need to use not Id (var pz = PinchZoomer.get(“bigImage”)), I need class, what can I do?

I have a carousel and I need to detect zoom in or zoom out of every element by class, what can I do? how to detect that image zoom in not only by ID?

Add some sort of previous zoom variable. Initially set it to 1 and store the last value of the zoom factor every zoom event. Then compare the current zoom factor to the previous one. So if curZoom > prevZoom then zoom in. If not, zoom out.

If you still have problems, please send a message here -> https://codecanyon.net/user/ronfeliciano Thanks

ibwj

ibwj Purchased

where is pz_sheet.png file? i can’t find that file.

Hi there,

Replied in your email

by
by
by
by
by
by