I see the problem at times on Firefox 3.6, but most of the times what I see is the same problem as in Chrome: mouseup does not release the rectangle, neither does click. I can't make the rectangle stick anywhere, it always keeps chasing my mouse, no matter how I un/click, until I leave the map.
On Tue, May 25, 2010 at 23:33, ElDiabloConQueso <[email protected]>wrote: > I'm 90% of the way through developing a draggable selection marquee in > Google Maps API v3, but I'm experiencing some funny behavior in > Firefox. My current project sits here for those who are interested in > viewing it: > > http://12.131.10.70/maptest/select.php > > When used in IE and Safari, you can click-drag a selection marquee on > the map (that will later be used to select geographic objects within > the rectangular selection area). It's as simple as clicking the mouse > button and holding it down, dragging out the rectangle, then releasing > the button. "mousedown," "mousemove," "mouseup" events, added as > listeners at various times. Sure, the drawing animation is slow -- > that's a problem I'll tackle later. > > I worked around the lack of some of those events on the actual "map" > object (specifically, mousedown and mouseup) by placing a transparent > "Rectangle" object over the entire map. Works nice. > > It seems in Firefox, whenever I cross a map tile (there's a slight > "bug" in IE 8 where I can see the map tile edges beneath the > transparent rectangle I drag out), the map "loses track" of the mouse > pointer, and I'm left with undesirable results (marquee "sticks" to > the mouse pointer, cannot detach it). If, in Firefox, you start > dragging a rectangle out toward the southeast, starting, say, around > Desert Trail St in the upper-left, your mouse pointer should "lose > track" around the section of unnamed streets just east of where you > started and just north of De Zavala Rd. > > Basic functionality should work like this: drag out a rectangle, then > you can click on the rectangle and make it disappear. Repeat until > you can't stand it. It's a project in its infancy, but until I get it > to work across most browsers (Firefox being super-important), I can't > go much farther with the project as a whole. > > Any ideas? In fact, if you drag too fast in IE, it fails as well -- > but if I can get around the current FireFox bug where it almost NEVER > works, I can tackle that, too, later. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
