File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,13 @@ const settingToManipulator = (setting: ManipulatorSettings) => {
9292
9393export function useInteractorStyleManipulatorSettings (
9494 getStyle : ( ) => vtkInteractorStyle ,
95- isExternalStyle : boolean ,
95+ isExternalStyle : ( ) => boolean ,
9696 settings : ManipulatorSettings [ ]
9797) {
9898 useComparableEffect (
9999 ( ) => {
100100 // Assumes external styles are externally controlled
101- if ( isExternalStyle ) return ;
101+ if ( isExternalStyle ( ) ) return ;
102102 if ( ! getStyle ( ) . isA ( 'vtkInteractorStyleManipulator' ) ) return ;
103103
104104 const style = getStyle ( ) as vtkInteractorStyleManipulator ;
@@ -143,7 +143,7 @@ export function useInteractorStyle(
143143 ) ;
144144
145145 const externalStyleRef = useRef < vtkInteractorStyle | null > ( null ) ;
146- const isExternalStyle = ! ! externalStyleRef . current ;
146+ const isExternalStyle = useCallback ( ( ) => ! ! externalStyleRef . current , [ ] ) ;
147147
148148 const getStyle = useCallback ( ( ) => {
149149 return externalStyleRef . current ?? getInternalStyle ( ) ;
You can’t perform that action at this time.
0 commit comments