document.addEventListener("DOMContentLoaded", () => {
  const checkbox = document.getElementById("reverseToggle");
  checkbox.checked = localStorage.getItem("dragScrollReverse") === "true";

  checkbox.addEventListener("change", () => {
    localStorage.setItem("dragScrollReverse", checkbox.checked ? "true" : "false");
  });
});