You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.
Demo link or sample code:
http://google-maps-utility-library-v3.googlecode.com/svn/tags/keydragzoom/2.0.2/
examples/visual.html
What steps will reproduce the problem?
1. Hold Shift key or click zoom icon
2. Single-click on map without dragging.
Expected result:
No action
Actual result:
Marking starts and Exception occurs. Map zooms to all the way in.
Version: 2.0.2 (Any)
Browser / Operating System:
IE8 / Windows 7
Additional comments:
In DragZoom.prototype.onMouseUp_
AFTER:
if (this.dragging_) {
BEFORE:
var left = Math.min(this.startPt_.x, this.endPt_.x);
ADD:
if ((this.getMousePoint_(e).x == this.startPt_.x) && (this.getMousePoint_(e).y
== this.startPt_.y)) {
// Cancel event
this.onKeyUp_(e);
return;
}
Original issue reported on code.google.com by ndamkj...@gmail.com on 11 Nov 2010 at 10:06
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
ndamkj...@gmail.com
on 11 Nov 2010 at 10:06The text was updated successfully, but these errors were encountered: