rem: dlTrafo.invtransform(pt1), dlTrafo.invtransform(pt2) 
add: dlTrafo.invtransform(clickRect.getPt1()), dlTrafo.invtransform(clickRect.getPt2()) 
context:     function zoomEnd(evt) {        pt2 = evtPosition(evt);        // assume a click if the area is too small (up to 3 x 3 pixel)        var clickArea = getRect(pt1, pt2).getArea();        if (clickArea <= MIN_AREA_SIZE) return stopEvent(evt);         // hide zoom div        showElement(zoomdiv, false);        showElement(overlay, false);        // unregister move events        unregisterEvent("mousemove", overlay, zoomMove);        unregisterEvent("mousemove", zoomdiv, zoomMove);        unregisterEvent("mousemove", elemScaler, zoomMove);        // unregister drag events        unregisterEvent("mouseup", overlay, zoomEnd);        unregisterEvent("mouseup", zoomdiv, zoomEnd);        unregisterEvent("mouseup", elemScaler, zoomMove);        // calc offsets        var area = getRect(            // FIX ME: liefert negative x/y Werte, wenn hmir/vmir=1            dlTrafo.invtransform(pt1),            dlTrafo.invtransform(pt2)            );        setParameter("wx", cropFloat(area.x));        setParameter("wy", cropFloat(area.y));        setParameter("ww", cropFloat(area.width));        setParameter("wh", cropFloat(area.height));        // parseArea(); // why?        // zoomed is always fit        setParameter("ws", 1);        display();        return stopEvent(evt);        }
meta: 7747	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7747/5927e0031d63b488f9d4630e16e2cc2c628c42e2/dllib.js/clean/client/digitallibrary/greyskin/dllib.js