File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ <h1 style="margin-top: 0px" data-i18n="options_video_header"></h1>
5252 data-i18n-label ="options_video_zoom "> </ input >
5353 </ div >
5454
55- < div class ="video-option " data-option ="videoDelay " data-unit ="ms " data-multiplier ="1 ">
55+ < div class ="video-option " data-option ="videoDelay " data-unit ="ms " data-multiplier ="1 " data-nolimits =" true " >
5656 < div class ="label " data-i18n ="options_video_delay "> </ div >
5757 < input class ="number " type ="text " data-i18n-label ="options_video_delay "> </ input >
5858 < input class ="range " type ="range " min ="-1000 " max ="1000 " value ="0 " step ="1 " list ="snap-zero "
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ button:focus-visible {
343343.video-option .number {
344344 text-align : center;
345345 font-variant-numeric : tabular-nums;
346- width : 60 px ;
346+ width : 80 px ;
347347}
348348
349349# ratebox {
Original file line number Diff line number Diff line change @@ -270,8 +270,9 @@ document.querySelectorAll('.video-option').forEach((option) => {
270270 const optionKey = option . dataset . option ;
271271
272272 function numberInputChanged ( ) {
273- rangeInput . value = parseInt ( numberInput . value . replace ( unit , '' ) ) || 0 ;
274- Options [ optionKey ] = parseInt ( rangeInput . value ) / unitMultiplier ;
273+ const value = parseInt ( numberInput . value . replace ( unit , '' ) ) || 0 ;
274+ rangeInput . value = value ;
275+ Options [ optionKey ] = ( option . dataset . nolimits ? value : parseInt ( rangeInput . value ) ) / unitMultiplier ;
275276 optionChanged ( ) ;
276277 }
277278
@@ -282,7 +283,6 @@ document.querySelectorAll('.video-option').forEach((option) => {
282283 }
283284
284285 numberInput . addEventListener ( 'change' , numberInputChanged ) ;
285- numberInput . addEventListener ( 'input' , numberInputChanged ) ;
286286 rangeInput . addEventListener ( 'change' , rangeInputChanged ) ;
287287 rangeInput . addEventListener ( 'input' , rangeInputChanged ) ;
288288 rangeInput . addEventListener ( 'dblclick' , ( e ) => {
You can’t perform that action at this time.
0 commit comments