"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/map/handler/Map.TouchZoom.js" between
Leaflet-1.8.0.tar.gz and Leaflet-1.9.0.tar.gz

About: Leaflet is a JavaScript library for mobile-friendly interactive maps.

Map.TouchZoom.js  (Leaflet-1.8.0):Map.TouchZoom.js  (Leaflet-1.9.0)
skipping to change at line 100 skipping to change at line 100
this._center = map.unproject(map.project(this._pinchStart LatLng, this._zoom).subtract(delta), this._zoom); this._center = map.unproject(map.project(this._pinchStart LatLng, this._zoom).subtract(delta), this._zoom);
} }
if (!this._moved) { if (!this._moved) {
map._moveStart(true, false); map._moveStart(true, false);
this._moved = true; this._moved = true;
} }
Util.cancelAnimFrame(this._animRequest); Util.cancelAnimFrame(this._animRequest);
var moveFn = Util.bind(map._move, map, this._center, this._zoom, {pinch: true, round: false}); var moveFn = Util.bind(map._move, map, this._center, this._zoom, {pinch: true, round: false}, undefined);
this._animRequest = Util.requestAnimFrame(moveFn, this, true); this._animRequest = Util.requestAnimFrame(moveFn, this, true);
DomEvent.preventDefault(e); DomEvent.preventDefault(e);
}, },
_onTouchEnd: function () { _onTouchEnd: function () {
if (!this._moved || !this._zooming) { if (!this._moved || !this._zooming) {
this._zooming = false; this._zooming = false;
return; return;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)