Skip to content

Commit

Permalink
Fixed npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
w8r committed Jul 12, 2022
1 parent b3fd049 commit c70a49b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 1 addition & 4 deletions dist/L.Path.Drag-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ L.Handler.PathDrag = L.Handler.extend(

this._mapDraggingWasEnabled = false;
this._startPoint = evt.containerPoint.clone();

this._dragStartPoint = evt.containerPoint.clone();
this._matrix = [1, 0, 0, 1, 0, 0];
L.DomEvent.stop(evt.originalEvent);
Expand Down Expand Up @@ -277,10 +278,6 @@ L.Handler.PathDrag = L.Handler.extend(
L.Util.requestAnimFrame(function () {
this._path._dragMoved = false;
this._path.options.interactive = true;
this._matrix = null;
this._startPoint = null;
this._dragStartPoint = null;

this._path._containsPoint = contains;
}, this);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/L.Path.Drag.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "leaflet-path-drag",
"version": "1.8.0-beta.1",
"version": "1.8.0-beta.2",
"description": "Drag functionality for Leaflet vector layers",
"main": "index.js",
"files": [
"index.js",
"dist/*.js"
],
"scripts": {
"test": "browserify --transform [ babelify --presets [ es2015 ] ] ./test/*.test.js | tape-run --render='tap-spec' | tap-status",
"start": "npm run watch & npm run server",
Expand Down

0 comments on commit c70a49b

Please sign in to comment.