From: Jenny B. <je...@bi...> - 2002-12-02 21:23:16
|
On Mon, 2 Dec 2002, Raymond Irving wrote: > Hi Jenny, > > where did you get the 'floating window' example? > Are you using dynapi 2.9 or 2.5? It's not an example, it's something I wrote. http://jenny.myinfogenic.net/sitebuilder/floatdemo/index.html I've noticed that if there's an iframe then document mouse events don't occur, since the iframe catches them. So, I tried removing the iframe and working with resizing with no iframe instead. However, whichever way I do it, I'm still having runaway mouse events. Sometimes my browser seems to simply not notice a mouse up event; using IE 5.5 and using Mozilla 1.0.1 for Windows. Sometimes the coordinates returned are inaccurate. Sometimes it just totally runs away (the window resizing following mouse movement gets random). I'm not sure what's going on but whatever it is, it's causing me trouble. At the moment the boxes only seem to resize if I catch them by the very point of the corner and drag them around, and even that is slow. Additionally, trying to drag it around by its title bar is slow and jerky, though that is done entirely based on the drag example in DynAPI. Thanks for your help. Jenny > --- Jenny Brown <je...@bi...> wrote: > > I'm using DynAPI to make a 'floating window' (iframe > > inside) which can > > be dragged around the screen, and hopefully will be > > resizable. Here's > > my problem though... > > > > If I use layer.setGrab(blah) to make the layer's top > > area grabbable, > > then the layer does not see a mouse event when > > clicking the lower right > > corner. However, the document also doesn't seem to > > see the mouse event > > on the lower right corner. It seems to be given to > > the layer to handle > > but the layer determines that checkWithinLayer() was > > false, and doesn't > > do anything with it. > > > > If I don't setGrab() then I can see the mouse event, > > but the layer > > both drags AND resizes on me. I don't see where to > > interrupt the > > handling flow so that I can determine for myself if > > this will be a > > drag event (and invoke the drag handler) or if it'll > > be a resize event. > > > > Getting lost in event chains... > > > > > > Jenny Brown > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm > > Tungsten T > > handheld. Power & Color in a compact size! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |