Skip to content

Commit

Permalink
fix(InnerImageZoom): Remove temporary debug code and test file.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxdAyala committed Jul 14, 2022
1 parent ef3d5a3 commit cc77b55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/test-ubuntu.yml

This file was deleted.

2 changes: 0 additions & 2 deletions src/InnerImageZoom/InnerImageZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ const InnerImageZoom = ({
const handleDragStart = (e) => {
const pageX = typeof e.pageX === 'number' ? e.pageX : e.changedTouches[0].pageX;
const pageY = typeof e.pageY === 'number' ? e.pageY : e.changedTouches[0].pageY;
//console.log(`Start pageX: ${pageX} pageY: ${pageY}`);
imgProps.current.offsets = getOffsets(pageX, pageY, zoomImg.current.offsetLeft, zoomImg.current.offsetTop);

setIsDragging(true);
Expand All @@ -119,7 +118,6 @@ const InnerImageZoom = ({
e.stopPropagation();
const pageX = typeof e.pageX === 'number' ? e.pageX : e.changedTouches[0].pageX;
const pageY = typeof e.pageY === 'number' ? e.pageY : e.changedTouches[0].pageY;
//console.log(`Move pageX: ${pageX} pageY: ${pageY}`);
let left = pageX - imgProps.current.offsets.x;
let top = pageY - imgProps.current.offsets.y;

Expand Down

0 comments on commit cc77b55

Please sign in to comment.