@@ -5,26 +5,26 @@ shRawLibFetch
5
5
"fetchList": [
6
6
{
7
7
"comment": true,
8
- "url": "https://github.com/codemirror/CodeMirror /blob/5.65.3 /LICENSE"
8
+ "url": "https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /LICENSE"
9
9
},
10
10
{
11
- "url": "https://github.com/codemirror/CodeMirror /blob/5.65.3 /codemirror.js",
12
- "url2": "https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.3 /codemirror.js"
11
+ "url": "https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /codemirror.js",
12
+ "url2": "https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5 /codemirror.js"
13
13
},
14
14
{
15
- "url": "https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/edit/matchbrackets.js"
15
+ "url": "https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/edit/matchbrackets.js"
16
16
},
17
17
{
18
- "url": "https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/edit/trailingspace.js"
18
+ "url": "https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/edit/trailingspace.js"
19
19
},
20
20
{
21
- "url": "https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/lint/lint.js"
21
+ "url": "https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/lint/lint.js"
22
22
},
23
23
{
24
- "url": "https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/selection/active-line.js"
24
+ "url": "https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/selection/active-line.js"
25
25
},
26
26
{
27
- "url": "https://github.com/codemirror/CodeMirror /blob/5.65.3 /mode/javascript/javascript.js"
27
+ "url": "https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /mode/javascript/javascript.js"
28
28
}
29
29
],
30
30
"replaceList": []
@@ -33,13 +33,13 @@ shRawLibFetch
33
33
34
34
35
35
/*
36
- repo https://github.com/codemirror/CodeMirror /tree/5.65.3
37
- committed 2022-04-20T09:49:25Z
36
+ repo https://github.com/codemirror/CodeMirror5 /tree/5.65.5
37
+ committed 2022-05-30T09:58:15Z
38
38
*/
39
39
40
40
41
41
/*
42
- file https://github.com/codemirror/CodeMirror /blob/5.65.3 /LICENSE
42
+ file https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /LICENSE
43
43
*/
44
44
/*
45
45
MIT License
@@ -67,7 +67,7 @@ THE SOFTWARE.
67
67
68
68
69
69
/*
70
- file https://github.com/codemirror/CodeMirror /blob/5.65.3 /codemirror.js
70
+ file https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /codemirror.js
71
71
*/
72
72
// CodeMirror, copyright (c) by Marijn Haverbeke and others
73
73
// Distributed under an MIT license: https://codemirror.net/LICENSE
@@ -97,7 +97,8 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/codemirror.js
97
97
var ie_version = ie && ( ie_upto10 ? document . documentMode || 6 : + ( edge || ie_11up ) [ 1 ] ) ;
98
98
var webkit = ! edge && / W e b K i t \/ / . test ( userAgent ) ;
99
99
var qtwebkit = webkit && / Q t \/ \d + \. \d + / . test ( userAgent ) ;
100
- var chrome = ! edge && / C h r o m e \/ / . test ( userAgent ) ;
100
+ var chrome = ! edge && / C h r o m e \/ ( \d + ) / . exec ( userAgent ) ;
101
+ var chrome_version = chrome && + chrome [ 1 ] ;
101
102
var presto = / O p e r a \/ / . test ( userAgent ) ;
102
103
var safari = / A p p l e C o m p u t e r / . test ( navigator . vendor ) ;
103
104
var mac_geMountainLion = / M a c O S X 1 \d \D ( [ 8 - 9 ] | \d \d ) \D / . test ( userAgent ) ;
@@ -4580,6 +4581,17 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/codemirror.js
4580
4581
}
4581
4582
4582
4583
function onScrollWheel ( cm , e ) {
4584
+ // On Chrome 102, viewport updates somehow stop wheel-based
4585
+ // scrolling. Turning off pointer events during the scroll seems
4586
+ // to avoid the issue.
4587
+ if ( chrome && chrome_version >= 102 ) {
4588
+ if ( cm . display . chromeScrollHack == null ) { cm . display . sizer . style . pointerEvents = "none" ; }
4589
+ else { clearTimeout ( cm . display . chromeScrollHack ) ; }
4590
+ cm . display . chromeScrollHack = setTimeout ( function ( ) {
4591
+ cm . display . chromeScrollHack = null ;
4592
+ cm . display . sizer . style . pointerEvents = "" ;
4593
+ } , 100 ) ;
4594
+ }
4583
4595
var delta = wheelEventDelta ( e ) , dx = delta . x , dy = delta . y ;
4584
4596
var pixelsPerUnit = wheelPixelsPerUnit ;
4585
4597
if ( e . deltaMode === 0 ) {
@@ -8268,7 +8280,7 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/codemirror.js
8268
8280
var pasted = e . clipboardData && e . clipboardData . getData ( "Text" ) ;
8269
8281
if ( pasted ) {
8270
8282
e . preventDefault ( ) ;
8271
- if ( ! cm . isReadOnly ( ) && ! cm . options . disableInput )
8283
+ if ( ! cm . isReadOnly ( ) && ! cm . options . disableInput && cm . hasFocus ( ) )
8272
8284
{ runInOp ( cm , function ( ) { return applyTextInput ( cm , pasted , 0 , null , "paste" ) ; } ) ; }
8273
8285
return true
8274
8286
}
@@ -9912,14 +9924,14 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/codemirror.js
9912
9924
9913
9925
addLegacyProps ( CodeMirror ) ;
9914
9926
9915
- CodeMirror . version = "5.65.3 " ;
9927
+ CodeMirror . version = "5.65.5 " ;
9916
9928
9917
9929
return CodeMirror ;
9918
9930
} ) ) ) ;
9919
9931
9920
9932
9921
9933
/*
9922
- file https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/edit/matchbrackets.js
9934
+ file https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/edit/matchbrackets.js
9923
9935
*/
9924
9936
// CodeMirror, copyright (c) by Marijn Haverbeke and others
9925
9937
// Distributed under an MIT license: https://codemirror.net/LICENSE
@@ -10084,7 +10096,7 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/addon/edit/matchbracke
10084
10096
10085
10097
10086
10098
/*
10087
- file https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/edit/trailingspace.js
10099
+ file https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/edit/trailingspace.js
10088
10100
*/
10089
10101
// CodeMirror, copyright (c) by Marijn Haverbeke and others
10090
10102
// Distributed under an MIT license: https://codemirror.net/LICENSE
@@ -10116,7 +10128,7 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/addon/edit/trailingspa
10116
10128
10117
10129
10118
10130
/*
10119
- file https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/lint/lint.js
10131
+ file https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/lint/lint.js
10120
10132
*/
10121
10133
// CodeMirror, copyright (c) by Marijn Haverbeke and others
10122
10134
// Distributed under an MIT license: https://codemirror.net/LICENSE
@@ -10412,7 +10424,7 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/addon/lint/lint.js
10412
10424
10413
10425
10414
10426
/*
10415
- file https://github.com/codemirror/CodeMirror /blob/5.65.3 /addon/selection/active-line.js
10427
+ file https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /addon/selection/active-line.js
10416
10428
*/
10417
10429
// CodeMirror, copyright (c) by Marijn Haverbeke and others
10418
10430
// Distributed under an MIT license: https://codemirror.net/LICENSE
@@ -10489,7 +10501,7 @@ file https://github.com/codemirror/CodeMirror/blob/5.65.3/addon/selection/active
10489
10501
10490
10502
10491
10503
/*
10492
- file https://github.com/codemirror/CodeMirror /blob/5.65.3 /mode/javascript/javascript.js
10504
+ file https://github.com/codemirror/CodeMirror5 /blob/5.65.5 /mode/javascript/javascript.js
10493
10505
*/
10494
10506
// CodeMirror, copyright (c) by Marijn Haverbeke and others
10495
10507
// Distributed under an MIT license: https://codemirror.net/LICENSE
0 commit comments