Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gsoc'24): Mobile touch and zoom implemented #360

Closed
wants to merge 10 commits into from

Conversation

niladrix719
Copy link
Member

@niladrix719 niladrix719 commented Aug 7, 2024

Mobile touch and zoom implemented

Copy link

netlify bot commented Aug 7, 2024

Deploy Preview for circuitverse ready!

Name Link
🔨 Latest commit 46d25a5
🔍 Latest deploy log https://app.netlify.com/sites/circuitverse/deploys/66bc9ad8dc00be0008624968
😎 Deploy Preview https://deploy-preview-360--circuitverse.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

}
globalScope.scale = Math.max(0.5, Math.min(4 * DPR, pinchZ * 2));
globalScope.scale = Math.round(globalScope.scale * 10) / 10;
globalScope.ox -= Math.round(centreX * (globalScope.scale - oldScale));

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments Error

'oldScale' is not defined.
globalScope.scale = Math.max(0.5, Math.min(4 * DPR, pinchZ * 2));
globalScope.scale = Math.round(globalScope.scale * 10) / 10;
globalScope.ox -= Math.round(centreX * (globalScope.scale - oldScale));
globalScope.oy -= Math.round(centreY * (globalScope.scale - oldScale));

Check failure

Code scanning / ESLint

disallow the use of undeclared variables unless mentioned in `/*global */` comments Error

'oldScale' is not defined.
@niladrix719 niladrix719 marked this pull request as ready for review August 11, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants