Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

[KeyDragZoom] Fix for Javascript Exception in IE8 #50

Closed
GoogleCodeExporter opened this issue Aug 11, 2015 · 3 comments
Closed

[KeyDragZoom] Fix for Javascript Exception in IE8 #50

GoogleCodeExporter opened this issue Aug 11, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

This change has been incorporated into r244 (KeyDragZoom 2.0.3).

See http://code.google.com/p/google-maps-utility-library-v3/source/detail?r=224


Original comment by garylitt...@gmail.com on 26 Nov 2010 at 7:46

@GoogleCodeExporter
Copy link
Author

Whoops, the change is actually in r224.

Gary

Original comment by garylitt...@gmail.com on 26 Nov 2010 at 8:18

@GoogleCodeExporter
Copy link
Author

Fixed in KeyDragZoom 2.0.3

Original comment by garylitt...@gmail.com on 7 Dec 2010 at 8:09

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant