File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,17 @@ export class GlobalPointerMoveMonitor implements IDisposable {
64
64
try {
65
65
initialElement . setPointerCapture ( pointerId ) ;
66
66
this . _hooks . add ( toDisposable ( ( ) => {
67
- initialElement . releasePointerCapture ( pointerId ) ;
67
+ try {
68
+ initialElement . releasePointerCapture ( pointerId ) ;
69
+ } catch ( err ) {
70
+ // See https://github.com/microsoft/vscode/issues/161731
71
+ //
72
+ // `releasePointerCapture` sometimes fails when being invoked with the exception:
73
+ // DOMException: Failed to execute 'releasePointerCapture' on 'Element':
74
+ // No active pointer with the given id is found.
75
+ //
76
+ // There's no need to do anything in case of failure
77
+ }
68
78
} ) ) ;
69
79
} catch ( err ) {
70
80
// See https://github.com/microsoft/vscode/issues/144584
You can’t perform that action at this time.
0 commit comments