From aa15eaa0349d35acd782e38bf1d577fc6667c0f3 Mon Sep 17 00:00:00 2001
From: Simon
Date: Sat, 26 Jul 2025 14:04:10 -0400
Subject: [PATCH] settings do not drag when input clicked now. Now supports
sliders! (huge)
---
startpage.html | 160 ++++++++++++++++++++++++-------------------------
1 file changed, 80 insertions(+), 80 deletions(-)
diff --git a/startpage.html b/startpage.html
index f50da88..4670b37 100644
--- a/startpage.html
+++ b/startpage.html
@@ -319,13 +319,13 @@
there are some keyboard shortcuts for your convenience:
"e" = enables editing mode
esc = disables editing mode (and saves page)
- "1"-"4" = jump between settings box tabs
+
- if you've accidentally pressed down on a "delete" button and want to
- cancel, you can hit escape before releasing the mouse button to save
- your progress and abort deletion.
+ precise adjustments:
+ if you click on a slider to focus it, and then keep your mouse hovered over it,
+ you can use the arrow keys to make minute adjustments.
@@ -580,7 +580,6 @@
let editing = false;
let moving = false;
let resizing = false;
- let removing = false;
let changingElement;
let lastMouseX = 0;
let lastMouseY = 0;
@@ -975,10 +974,14 @@
+
+
+
+
@@ -986,12 +989,12 @@
-
+
-
+
@@ -1002,7 +1005,7 @@
-
+
@@ -1025,12 +1028,12 @@
-
+
-
+
@@ -1098,13 +1101,13 @@
-
+
layer shape
-
-
+
+
border
@@ -1114,8 +1117,8 @@
-
-
+
+
@@ -1128,22 +1131,26 @@
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
+
-
-
+
+
@@ -1280,51 +1287,52 @@
-
-
border + shape options
-
+
-
-
+
image shape
+
+
+
+
-
change border + shape
-
-
-
-
+
border
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
shadow / glow
+
+
+
+
-
change shadow / glow
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1701,6 +1709,7 @@
if (e.key == "Escape" && editing) {
toggleEditMode();
}
+ /*
if (e.key == "1" && editing) {
changeActiveTab({target: { id: "containerTab" }});
}
@@ -1712,7 +1721,7 @@
}
if (e.key == "4" && editing) {
changeActiveTab({target: { id: "ioTab" }});
- }
+ } */
});
/** set up cursors */
@@ -2006,19 +2015,6 @@
movableElements[i].style.cursor = "";
}
- // disable image removal mode active
- if (removing) {
- removing = false;
- document.getElementById("imageRemovalToggle").checked = false;
- let images = document.getElementsByClassName("userImage");
- for (let i = 0; i < images.length; i++) {
- images[i].classList.remove("removable");
- }
- document
- .getElementById("imageRemovalWarning")
- .classList.add("hidden");
- }
-
// hide the settings container
settingsContainer.classList.add("hidden");
}
@@ -2448,7 +2444,11 @@
function mouseDownMovableElement(mouseDown) {
/** MOVEMENT / RESIZING HANDLERS */
- if (!editing || removing) {
+ if (!editing ||
+ mouseDown.target.tagName == "BUTTON" ||
+ mouseDown.target.tagName == "INPUT" ||
+ mouseDown.target.classList.contains("expandableMenuToggle")
+ ) {
return;
}