jaukia / zoomooz

An easy-to-use jQuery plugin for making zooming web pages.
http://janne.aukia.com/zoomooz/
1.79k stars 275 forks source link

Zoomooz breaks Bootstrap dropdown and modal function #93

Open macsupport opened 10 years ago

macsupport commented 10 years ago

If zoomooz is included on a page, Bootstrap modal and dropdown do not work.

http://jsfiddle.net/macsupport/rBGw2/

It seems the error is:

Error in parsing value for 'transform'. Declaration dropped.
translate(NaNpx,NaNpx) rotate(0rad) skewX(0rad) scale(1,1)

I'm guessing at line 683?

function matrixCompose(ia) {
        var ret = "";
        /* this probably made safari 5.1.1. + os 10.6.8 + non-unibody mac? */
        //ret += "translateZ(0) ";
        ret += "translate("+roundNumber(ia.tx,6)+"px,"+roundNumber(ia.ty,6)+"px) ";
        ret += "rotate("+roundNumber(ia.r,6)+"rad) skewX("+roundNumber(ia.k,6)+"rad) ";
        ret += "scale("+roundNumber(ia.sx,6)+","+roundNumber(ia.sy,6)+")";
        return ret;
    }

But I'm a novice, so this may not be related....

macsupport commented 10 years ago

Any fix for this? Seems like a big bug if it disables bootstrap js functions

RasulAV commented 7 years ago

Hi !

here's solution:

http://jsfiddle.net/Rasul/rBGw2/1/