lock cursor style during image resize
Hunter
Sunday, October 19th, 2025 at 7:21 PM
82 outline-color: #4a90e2;
83 }
84
85 + body.resizing * {
86 + cursor: inherit !important;
87 + }
88 +
89 .image-container img {
90 width: 100%;
91 height: 100%;
339 e.preventDefault();
340 e.stopPropagation();
341
342 + // Get the cursor style from the handle and apply it to the body
343 + const cursorStyle = window.getComputedStyle(handle).cursor;
344 + document.body.style.cursor = cursorStyle;
345 + document.body.classList.add('resizing');
346 +
347 resizeState = {
348 image: imageData,
349 direction: handle.dataset.direction,
433 if (resizeState) {
434 resizeState.image.container.classList.remove('resizing');
435 resizeState = null;
436 + // Restore the default cursor
437 + document.body.style.cursor = '';
438 + document.body.classList.remove('resizing');
439 }
440 });
441 </script>