Skip to content

Commit

Permalink
fix: remove passive false
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Oct 18, 2024
1 parent dd7e726 commit beaaefd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const CustomImageBlock: React.FC<CustomImageBlockProps> = (props) => {
window.addEventListener("mousemove", handleResize);
window.addEventListener("mouseup", handleResizeEnd);
window.addEventListener("mouseleave", handleResizeEnd);
window.addEventListener("touchmove", handleResize, { passive: false });
window.addEventListener("touchmove", handleResize);
window.addEventListener("touchend", handleResizeEnd);

return () => {
Expand Down Expand Up @@ -251,7 +251,7 @@ export const CustomImageBlock: React.FC<CustomImageBlockProps> = (props) => {
imageRef.current.src = remoteImageSrc;
} catch {
setFailedToLoadImage(true);
console.log("Error while loading image", e);
console.error("Error while loading image", e);
} finally {
setOnFirstLoadError(false);
}
Expand Down

0 comments on commit beaaefd

Please sign in to comment.