mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 22:48:12 +08:00
Consolidate MenuListButton into TextButton (#1470)
This commit is contained in:
@@ -248,7 +248,7 @@
|
||||
|
||||
function onDragPointerDown(e: PointerEvent) {
|
||||
// Only drag the number with left click (and when it's valid to do so)
|
||||
if (e.button !== BUTTON_LEFT || mode !== "Increment" || value === undefined) return;
|
||||
if (e.button !== BUTTON_LEFT || mode !== "Increment" || value === undefined || disabled) return;
|
||||
|
||||
// Don't drag the text value from is input element
|
||||
e.preventDefault();
|
||||
@@ -633,8 +633,8 @@
|
||||
}
|
||||
|
||||
// Show the left-right arrow cursor when hovered over the draggable area
|
||||
input[type="text"]:not(:focus),
|
||||
label {
|
||||
&:not(.disabled) input[type="text"]:not(:focus),
|
||||
&:not(.disabled) label {
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user