Bug 376 - Zoomin with box has problems in IE
: Zoomin with box has problems in IE
Status: CLOSED FIXED
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P2 critical
: 1.99 beta 2
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-05-10 09:41 by
Modified: 2004-07-14 15:09 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-05-10 09:41:27
The zoomin box has problems in IE (also in the Studio template). Sometimes the
cannot drag image appears, and sometimes the box will continue to follow the
mouse position. A user has to click again to perform the zoom action. These
problems were not present in Chameleon 1.1.
------- Comment #1 From 2004-05-12 11:10:15 -------
I think there may be two separate issues here.  First is the dragging thing and
second is the mouse movement and need to click ...


The dragging thing first ...

I don't seem to be able to reproduce the drag problem in IE but I can in FireFox
... interesting ... I would like to suggest adding an event handler to
accomodate this:

document.ondragstart = CWCOnDrag;

function CWCOnDragStart( e )
{
    var target;
    if (CWCIsIE)
    {
        e = event;
        target = event.srcElement;
        e.cancelBubble = true;
        e.returnValue = false;
    }
    else
    {
        target = e.target;
        if (e.cancelable)
            e.cancelBubble = true;
    }
}

Bart, can you try adding this to your template and see if it resolves your
problem?  If yes, then I will probably include this in the javascript functions
provided by the MapDHTML widget

Now the movement thing ...

There is an issue I have observed with the mouse moving outside the map area,
this will cause the zoom tool to stop tracking mouse movement and requires a
second mouse down/mouse up inside the map area to trigger the zoomin, even
though moving the mouse with no button down causes the zoom box to follow the
mouse.  Is this what is happening for you?

This issue may occur with Chameleon 1.99 beta because we modified the movement
handlers to only trigger when the mouse is over the map.  We may need some
additional logic to know that a tool is in use and not unhook the handlers.
------- Comment #2 From 2004-05-12 11:12:50 -------
and now I have seem the drag problem in IE too ... I don't think it is browser
specific, so perhaps the ondragstart is not to blame?  There could be some
synchronization problems too.  Hard to tell at this point.
------- Comment #3 From 2004-05-12 11:28:14 -------
Hi Paul,

adding the function to my template seems to solve things with the zoomin box in
IE. Great!

The problem I had was not happening when moving outside of the map area. I was
just inside the map area all of the time.

The strange thing is that it still does not work for the ROIRectangleTool. Do
they use different js logic?
------- Comment #4 From 2004-05-20 16:50:24 -------
Added the ondragstart handler to the MapDHTMLWidget and also modified the
MapDHTMLWidget to give non-zero zindexes to the various DHTML layers involved in
displaying the map to prevent problems with the mouse movement handler 'seeing'
the MapDHTML image events.
------- Comment #5 From 2004-06-24 14:46:02 -------
Not sure how to verify this bug. Paul do you have any suggestions?
------- Comment #6 From 2004-07-05 16:00:08 -------
Bart, please verify.
------- Comment #7 From 2004-07-06 01:46:44 -------
Verified, I will remove the code from my templates now.
------- Comment #8 From 2004-07-14 15:09:12 -------
closing bug based on last comment.