Fixed a bug with the picking events being incorrect

master
Robin Hawkes 2016-03-21 17:04:42 +00:00
rodzic 44999b26aa
commit 643b3ae36d
5 zmienionych plików z 13 dodań i 5 usunięć

7
dist/vizicities.js vendored
Wyświetl plik

@ -116,6 +116,10 @@ return /******/ (function(modules) { // webpackBootstrap
var _geoLatLon2 = _interopRequireDefault(_geoLatLon);
var _enginePickingMaterial = __webpack_require__(85);
var _enginePickingMaterial2 = _interopRequireDefault(_enginePickingMaterial);
var _utilIndex = __webpack_require__(92);
var _utilIndex2 = _interopRequireDefault(_utilIndex);
@ -151,6 +155,7 @@ return /******/ (function(modules) { // webpackBootstrap
point: _geoPoint.point,
LatLon: _geoLatLon2['default'],
latLon: _geoLatLon.latLon,
PickingMaterial: _enginePickingMaterial2['default'],
Util: _utilIndex2['default']
};
@ -4055,7 +4060,7 @@ return /******/ (function(modules) { // webpackBootstrap
this._resizeHandler = this._resizeTexture.bind(this);
window.addEventListener('resize', this._resizeHandler, false);
this._mouseUpHandler = this._resizeTexture.bind(this);
this._mouseUpHandler = this._onMouseUp.bind(this);
this._world._container.addEventListener('mouseup', this._mouseUpHandler, false);
this._world.on('move', this._onWorldMove, this);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -45,7 +45,7 @@ class Picking {
this._resizeHandler = this._resizeTexture.bind(this);
window.addEventListener('resize', this._resizeHandler, false);
this._mouseUpHandler = this._resizeTexture.bind(this);
this._mouseUpHandler = this._onMouseUp.bind(this);
this._world._container.addEventListener('mouseup', this._mouseUpHandler, false);
this._world.on('move', this._onWorldMove, this);

Wyświetl plik

@ -15,6 +15,8 @@ import PointLayer, {pointLayer} from './layer/geometry/PointLayer';
import Point, {point} from './geo/Point';
import LatLon, {latLon} from './geo/LatLon';
import PickingMaterial from './engine/PickingMaterial';
import Util from './util/index';
const VIZI = {
@ -48,6 +50,7 @@ const VIZI = {
point: point,
LatLon: LatLon,
latLon: latLon,
PickingMaterial: PickingMaterial,
Util: Util
};