Skip to content

Commit 7092495

Browse files
committed
Minor issue fix
1 parent 3287af8 commit 7092495

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ let startWidth;
170170

171171
const 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

style.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)