File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ let startWidth;
170170
171171const resize = ( e ) => {
172172 // Use e.touches[0].pageX for touch events and e.pageX for mouse events
173- const pageX = e . touches ? e . touches [ 0 ] . pageX : e . pageX ;
173+ const pageX = e . pageX ;
174174 const width = startWidth + ( pageX - startX ) ;
175175 main . style . width = `${ width } px` ;
176176 debouncedDownload ( ) ;
@@ -191,14 +191,6 @@ resizeHandle.addEventListener('mousedown', e => {
191191 debouncedDownload ( ) ;
192192} ) ;
193193
194- // Add touch event listeners
195- resizeHandle . addEventListener ( 'touchstart' , e => {
196- startX = e . touches [ 0 ] . pageX ;
197- startWidth = main . offsetWidth ;
198- window . addEventListener ( 'touchmove' , resize ) ;
199- window . addEventListener ( 'touchend' , stopResize ) ;
200- debouncedDownload ( ) ;
201- } ) ;
202194
203195// Event listener for background transparency
204196// Select the checkbox and the main element
Original file line number Diff line number Diff line change @@ -396,8 +396,7 @@ footer a img:hover{
396396 grid-area : 1 / 2 ;
397397 }
398398 .resize-handle .right {
399- width : 20px ;
400- height : 20px ;
399+ display : none;
401400 }
402401 footer {
403402 padding : 0 ;
You can’t perform that action at this time.
0 commit comments