Fix #55
This commit is contained in:
parent
1cbab5f8fa
commit
6ad314ef11
@ -87,7 +87,6 @@ rating.addEventListener("mousemove", (event) => {
|
|||||||
if (!dataset.storageGetKey("is-rated", false)) {
|
if (!dataset.storageGetKey("is-rated", false)) {
|
||||||
let bounds = rating.getBoundingClientRect();
|
let bounds = rating.getBoundingClientRect();
|
||||||
currentRating = Math.round(((event.clientX - bounds.left) / bounds.width) * 5);
|
currentRating = Math.round(((event.clientX - bounds.left) / bounds.width) * 5);
|
||||||
console.log(currentRating);
|
|
||||||
rating.value = currentRating;
|
rating.value = currentRating;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user