More cross-browser way for rescaling, using the original 'tp' variable and post-fixing 'Origin' for transformOrigin. Haven't yet tested for non-Firefox browsers though, but I think this should work.
This commit is contained in:
parent
6647cc90bf
commit
ddc634fff8
|
|
@ -267,8 +267,8 @@ rescaleAuto = function() {
|
|||
factor=xFactor<yFactor?xFactor:yFactor;
|
||||
factor-=0.01;
|
||||
|
||||
c.style.MozTransform = "scale(" + factor + ")";
|
||||
c.style.MozTransformOrigin = "top left";
|
||||
c.style[tp] = "scale(" + factor + ")";
|
||||
c.style[tp+'Origin'] = "top left";
|
||||
|
||||
UI.rfb.get_mouse().set_scale(factor);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue