Skip to content

Commit

Permalink
Merge pull request #49 from w3geo/schlag-selection-cursor
Browse files Browse the repository at this point in the history
Only show schlag selection cursor when selection is possible
  • Loading branch information
ahocevar authored Sep 3, 2024
2 parents 3e942e1 + b2ccf6b commit 6940bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/useSchlag.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ map.on('click', (event) => {
}
});
map.on('pointermove', (event) => {
if (event.dragging) {
if (!allData.value.datawindow || event.dragging) {
return;
}
map.getTargetElement().style.cursor = getSchlagAtPixel(event.pixel) ? 'pointer' : '';
Expand Down

0 comments on commit 6940bc5

Please sign in to comment.