Skip to content

Commit

Permalink
Fixed the example
Browse files Browse the repository at this point in the history
  • Loading branch information
w8r committed Mar 5, 2024
1 parent 066d86f commit d2d5204
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
steps:
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: chrome --version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
node-version: 18
- run: npm ci
- run: npm run build --if-present
- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions src/Path.Drag.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ Handler.PathDrag = Handler.extend(
? 'touchstart'
: evt.originalEvent.type;

console.log({ eventType });

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

Expand Down
6 changes: 3 additions & 3 deletions src/main.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as L from 'leaflet';
// L.Browser.retina = true;
import '../src';
import * as L from 'https://cdn.jsdelivr.net/npm/leaflet@1.9.4/+esm'; // L.Browser.retina = true;
// use UMD build for the plugin
import '../dist/index.js';

////////////////////////////////////////////////////////////////////////////////
const map = (window.map = new L.Map('map', {
Expand Down

0 comments on commit d2d5204

Please sign in to comment.