Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
The problem of spawning too many peds is now fixed.
  • Loading branch information
Ekhion76 authored Dec 20, 2023
1 parent 6bdf163 commit 05098d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions html/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ $("#wrapper").draggable({
containment: "parent"
});

$container.on("click", "li", function () {
elementHighlighting($(this));
loadSelectedItem($(this));
});

$slider.slider({
min: 0,
value: 0,
Expand Down Expand Up @@ -161,10 +166,6 @@ function render(start) {

$container.html(`<ul>${elements.join('')}</ul>`);
$container.animate({scrollTop: 0}, "slow");
$container.on("click", "li", function () {
elementHighlighting($(this));
loadSelectedItem($(this));
});
$resultItems = $container.find("li");
}

Expand Down

0 comments on commit 05098d2

Please sign in to comment.