Skip to content

Commit

Permalink
Remove scrollToCoordinates.
Browse files Browse the repository at this point in the history
  • Loading branch information
amovar18 committed Jan 20, 2025
1 parent 085c55e commit 71d58ed
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
*/
import app from '../app';
import config from '../config';
import {
addCanvasEventListener,
isInsideBox,
scrollToCoordinates,
} from '../utils';
import { addCanvasEventListener, isInsideBox } from '../utils';

const INFO_ICON_SIZE = 16;
const INFO_ICON_SPACING = 3;
Expand All @@ -47,8 +43,6 @@ const Box = ({
},
};

scrollToCoordinates(x, y);

const p = app.p;

p.push();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ const ProgressLine = ({
break;

case 'up':
utils.scrollToCoordinates(x1, currentY);
currentY -= incrementBy;

if (y1 - currentY > height) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ bubbles.barrageAnimation = async (index) => {
return;
}

utils.scrollToCoordinates(0, 0, true);
utils.wipeAndRecreateInterestCanvas();

for (let i = 0; i < positionsOfCircles.length; i++) {
Expand Down Expand Up @@ -279,7 +278,6 @@ bubbles.reverseBarrageAnimation = async (index) => {
}

document.getElementById('interest-canvas').style.zIndex = 4;
utils.scrollToCoordinates(0, 0, true);

await new Promise((resolve) => {
const animate = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ export * from './markVisitedValue';
export * from './requestInterval';
export * from './isOverControls';
export * from './isInsideBox';
export * from './scrollToCoordinates';

This file was deleted.

0 comments on commit 71d58ed

Please sign in to comment.