Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop into master 2.15.0 #1426

Merged
merged 30 commits into from
Nov 26, 2023
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
144c0c8
chore(docs): update docs website
codeofsumit May 11, 2023
39e3deb
Fix Norwegian translation typos (lower case) (#1322) (patch)
andreasvatne Jun 4, 2023
929f221
chore(deps): Bump minimist from 1.2.5 to 1.2.8 (#1325)
dependabot[bot] Jun 4, 2023
0698d69
chore(deps-dev): Bump webpack from 5.36.2 to 5.76.0 (#1335)
dependabot[bot] Jun 4, 2023
c3461b3
Fix listen to layerremove instead of pm:remove to keep snapList updat…
beig Jun 4, 2023
932d4a9
update docs (patch) (#1360)
codeofsumit Jun 7, 2023
62b6ee6
Update lint config and lint all files
Falke-Design Jul 5, 2023
38e5db4
Fix test after linting (ignore)
Falke-Design Jul 5, 2023
ee3e4a6
update persian translation (patch) (#1387)
cksadra Nov 21, 2023
55ba4c4
chore(deps-dev): Bump postcss from 8.4.5 to 8.4.31 (#1403)
dependabot[bot] Nov 21, 2023
7966978
chore(deps-dev): Bump word-wrap from 1.2.3 to 1.2.4 (#1381)
dependabot[bot] Nov 21, 2023
fdb6d46
update polish translation (patch) (#1365)
artur1989 Nov 21, 2023
07e6c5d
Use preferred tile.openstreetmap.org URL (#1393)
Dimitar5555 Nov 21, 2023
fdf1dea
Remove autofocus from Text Layers (#1409) (patch)
Falke-Design Nov 21, 2023
8f97db8
Replace hard-coded Earth radius with `L.CRS.Earth.R` (#1406) (patch)
0scvr Nov 21, 2023
c8cf8af
Fix disabling snapping with altKey (#1379)
Falke-Design Nov 21, 2023
3a9a4a6
Draw.Rectangle now correctly returns corners of rotated rectangle (#1…
AlimurtuzaCodes Nov 21, 2023
de3631b
Allow custom rotation point via `setRotationCenter` (#1362) (minor)
strfx Nov 21, 2023
da196bb
Leaflet-Geoman now consistently uses crosshair as the cursor while dr…
Falke-Design Nov 21, 2023
73a345d
chore(deps): Bump tough-cookie and @cypress/request (#1414)
dependabot[bot] Nov 21, 2023
4edf39b
chore(deps-dev): Bump @babel/traverse from 7.16.5 to 7.23.4 (#1415)
dependabot[bot] Nov 21, 2023
a615e6a
[Refactor] Extends Circle from CircleMarker (patch) (#1309)
Falke-Design Nov 21, 2023
e714545
Add `pm:intersect` event to Draw mode and refactor old intersection c…
Falke-Design Nov 21, 2023
f3f9343
Auto detect initial angle of Rectangle (#1370) (patch)
Falke-Design Nov 21, 2023
cd22a48
Add onVertexClick to Rectangle, Circle and CircleMarker (#1367)
Falke-Design Nov 21, 2023
c5b2381
Auto Prettier on commit (#1413)
Falke-Design Nov 21, 2023
cb92b1e
Run formatter (ignore) (#1419)
Falke-Design Nov 21, 2023
b74fbfc
Update node version (#1420)
Falke-Design Nov 22, 2023
939893e
Update GlobalModes for Removal and Rotate + some little fixes (#1418)…
Falke-Design Nov 22, 2023
b8b56e7
2.15.0
codeofsumit Nov 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix disabling snapping with altKey (#1379)
* Fix disabling snapping with altKey

* Update src/js/Mixins/Snapping.js
Falke-Design authored Nov 21, 2023
commit c8cf8af284a7d8d1eeadcb04bb6eb42016ddcbcb
3 changes: 2 additions & 1 deletion src/js/Mixins/Snapping.js
Original file line number Diff line number Diff line change
@@ -76,7 +76,8 @@ const SnapMixin = {
}

// if snapping is disabled via holding ALT during drag, stop right here
if (this._map.pm.Keyboard.isAltKeyPressed()) {
// we need to check for the altKey on the move event, because keydown event is to slow ...
if (e.originalEvent.altKey || this._map?.pm?.Keyboard.isAltKeyPressed()) {
return false;
}