Prior to this change, the "stuck" button was staying stuck (ha!) with
styling as if hovered even after the user was done pressing it.
color: #333;
}
-.controls button.stuck-btn:hover {
- background: #e0e0e0;
+/* Only apply hover effects on devices with a true pointer, avoiding
+ sticky :hover on mobile where there's no "unhover" event. */
+@media (hover: hover) {
+ .controls button.stuck-btn:hover {
+ background: #e0e0e0;
+ }
+ .controls button.stuck-active:hover {
+ background: #cf6d13;
+ }
}
.controls button.stuck-active {