@ngenux/ngage-whiteboarding 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -37169,13 +37169,15 @@ const LeftSidebar = ({ queueAction, hasToolAccess = false, shouldBeOpenByDefault
|
|
|
37169
37169
|
setIsInitialized(true);
|
|
37170
37170
|
}
|
|
37171
37171
|
}, [state]);
|
|
37172
|
-
// Set white as default stroke color when video background is
|
|
37172
|
+
// Set white as default stroke color when video background is first activated (only once)
|
|
37173
|
+
const hasVideoBackgroundRef = React.useRef(false);
|
|
37173
37174
|
React.useEffect(() => {
|
|
37174
|
-
|
|
37175
|
-
|
|
37175
|
+
// Only auto-switch to white on first video activation, and only if currently black
|
|
37176
|
+
if (hasVideoBackground && !hasVideoBackgroundRef.current && state.color === '#000000') {
|
|
37176
37177
|
dispatch({ type: 'SET_COLOR', payload: '#FFFFFF' });
|
|
37177
37178
|
}
|
|
37178
|
-
|
|
37179
|
+
hasVideoBackgroundRef.current = hasVideoBackground;
|
|
37180
|
+
}, [hasVideoBackground, dispatch]);
|
|
37179
37181
|
// Track initial access grant
|
|
37180
37182
|
React.useEffect(() => {
|
|
37181
37183
|
if (hasToolAccess && !hasEverHadAccess) {
|