mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-05 18:11:23 +01:00
fix: burgs overview - don't auto-show labels on hover
This commit is contained in:
parent
a3df07f5e6
commit
cf5e75b561
1 changed files with 2 additions and 2 deletions
|
|
@ -154,9 +154,9 @@ function overviewBurgs(settings = {stateId: null, cultureId: null}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function burgHighlightOn(event) {
|
function burgHighlightOn(event) {
|
||||||
if (!layerIsOn("toggleLabels")) toggleLabels();
|
|
||||||
const burg = +event.target.dataset.id;
|
const burg = +event.target.dataset.id;
|
||||||
burgLabels.select("[data-id='" + burg + "']").classed("drag", true);
|
const label = burgLabels.select("[data-id='" + burg + "']");
|
||||||
|
if (label.size()) label.classed("drag", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function burgHighlightOff() {
|
function burgHighlightOff() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue