Compare commits

...

1 Commits

Author SHA1 Message Date
zsviczian
fe04998f17 fix: unlocked hit elements to take priority 2025-05-26 19:32:50 +00:00

View File

@ -7253,7 +7253,12 @@ class App extends React.Component<AppProps, AppState> {
});
}
if (
// Prioritize unlocked elements over locked ones
if (unlockedHitElements.length > 0) {
// If there are unlocked elements, use the topmost one
pointerDownState.hit.element =
unlockedHitElements[unlockedHitElements.length - 1];
} else if (
hitElementMightBeLocked &&
hitElementMightBeLocked.locked &&
!unlockedHitElements.some(