@@ -10,7 +10,6 @@ import {
10
10
} from '../../util/timecode-converter' ;
11
11
12
12
import style from './WrapperBlock.module.css' ;
13
- import VisibilitySensor from 'react-visibility-sensor' ;
14
13
15
14
class WrapperBlock extends React . Component {
16
15
constructor ( props ) {
@@ -138,48 +137,17 @@ class WrapperBlock extends React.Component {
138
137
139
138
return (
140
139
< div className = { style . WrapperBlock } >
141
-
142
- < VisibilitySensor
143
- partialVisibility = { true }
144
- // intervalCheck={ false }
145
- scrollCheck
140
+ < div
141
+ className = { [ style . markers , style . unselectable ] . join ( ' ' ) }
142
+ contentEditable = { false }
146
143
>
147
- {
148
- ( { isVisible } ) => (
149
- < >
150
- { isVisible ? (
151
- < >
152
- < div
153
- className = { [ style . markers , style . unselectable ] . join ( ' ' ) }
154
- contentEditable = { false }
155
- >
156
- { this . props . blockProps . showSpeakers ? speakerElement : '' }
157
-
158
- { this . props . blockProps . showTimecodes ? timecodeElement : '' }
159
- </ div >
160
- < div className = { style . text } >
161
- < EditorBlock { ...this . props } />
162
- </ div >
163
- </ >
164
- ) : (
165
- < >
166
- < div
167
- className = { [ style . markers , style . unselectable ] . join ( ' ' ) }
168
- contentEditable = { false }
169
- >
170
- < span className = { style . speaker } > …</ span >
171
- < span className = { style . time } > …</ span >
172
- </ div >
173
- < div className = { style . text } >
174
- < span > …</ span >
175
- </ div >
176
- </ >
177
- ) }
178
- </ >
179
- )
180
-
181
- }
182
- </ VisibilitySensor >
144
+ { this . props . blockProps . showSpeakers ? speakerElement : '' }
145
+
146
+ { this . props . blockProps . showTimecodes ? timecodeElement : '' }
147
+ </ div >
148
+ < div className = { style . text } >
149
+ < EditorBlock { ...this . props } />
150
+ </ div >
183
151
</ div >
184
152
) ;
185
153
}
0 commit comments