File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/vs/editor/browser/config Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -229,14 +229,13 @@ function digitCount(n: number): number {
229
229
230
230
function getExtraEditorClassName ( ) : string {
231
231
let extra = '' ;
232
- if ( ! browser . isSafari && ! browser . isWebkitWebView ) {
233
- // Use user-select: none in all browsers except Safari and native macOS WebView
234
- extra += 'no-user-select ' ;
235
- }
236
- if ( browser . isSafari ) {
232
+ if ( browser . isSafari || browser . isWebkitWebView ) {
237
233
// See https://github.com/microsoft/vscode/issues/108822
238
234
extra += 'no-minimap-shadow ' ;
239
235
extra += 'enable-user-select ' ;
236
+ } else {
237
+ // Use user-select: none in all browsers except Safari and native macOS WebView
238
+ extra += 'no-user-select ' ;
240
239
}
241
240
if ( platform . isMacintosh ) {
242
241
extra += 'mac ' ;
You can’t perform that action at this time.
0 commit comments