good find, chris. indeed a bug. i've reopened the ticket and am preparing a patch:<br><a href="http://trac.openlayers.org/ticket/1359#comment:12">http://trac.openlayers.org/ticket/1359#comment:12</a><br><br><div class="gmail_quote">
On Thu, Oct 23, 2008 at 4:47 PM, Chris Rankin <span dir="ltr"><<a href="mailto:rankincj@yahoo.com">rankincj@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I have noticed the following oddity in a patch attached to ticket #1359, at line 152:<br>
<br>
<a href="http://trac.openlayers.org/attachment/ticket/1359/rightClicks.patch" target="_blank">http://trac.openlayers.org/attachment/ticket/1359/rightClicks.patch</a><br>
<br>
144 var propagate = true;<br>
145<br>
146 // Collect right mouse clicks from the mouseup<br>
147 // IE - ignores the second right click in mousedown so using<br>
148 // mouseup instead<br>
149 if (this.checkModifiers(evt) &&<br>
150 this.control.handleRightClicks &&<br>
151 OpenLayers.Event.isRightClick(evt)) {<br>
152 propogate = this.rightclick(evt);<br>
153 }<br>
154<br>
155 return propagate;<br>
<br>
Surely that should be "propagate" rather than "propogate"?<br>
<br>
Cheers,<br>
Chris<br>
<br>
P.S. Is there any reason why the following would NOT notify me of right-clicks on my map?<br>
<br>
map.events.register('rightclick', map, function(e) {<br>
alert(this.CLASS_NAME);<br>
return true;<br>
});<br>
<br>
I have already set the handleRightClicks property to "true" on the Navigation control.<br>
<br>
<br>
<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</blockquote></div><br>