mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Fix a crash when trying to set the default color
This commit is contained in:
parent
4f16cce206
commit
2a85a79daf
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ function ColorPickerStartPick(Event) {
|
|||
var X = C.X;
|
||||
var Y = C.Y;
|
||||
if (X >= ColorPickerX && X < ColorPickerX + ColorPickerWidth) {
|
||||
if (ItemColorState.editOpacity && MouseIn(1201, 72, 218, 48)) {
|
||||
if (ItemColorState?.editOpacity && MouseIn(1201, 72, 218, 48)) {
|
||||
document.addEventListener("mousemove", ColorPickerPickOpacity);
|
||||
document.addEventListener("touchmove", ColorPickerPickOpacity);
|
||||
ColorPickerPickOpacity(Event);
|
||||
|
|
Loading…
Add table
Reference in a new issue