Skip to content
Snippets Groups Projects
Commit 4066e9f0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Point is defined as Point structure

parent a43cf3e8
No related branches found
No related tags found
1 merge request!295Resolve "alternative to google maps api way of visualizing maps"
......@@ -147,10 +147,7 @@ OverviewDialog.prototype.showOverview = function (overviewImageId) {
var xNormal = position.x / currentRatio;
var yNormal = position.y / currentRatio;
var point = {
x: xNormal,
y: yNormal
};
var point = new Point(xNormal, yNormal);
if (self.overviewImage.mousePos.x !== position.x || self.overviewImage.mousePos.y !== position.y) {
self.overviewImage.mousePos = position;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment