Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Comments

46266194: Board zoom toolbar#158

Merged
unknownproperty merged 4 commits intostagingfrom
46266194
Mar 7, 2025
Merged

46266194: Board zoom toolbar#158
unknownproperty merged 4 commits intostagingfrom
46266194

Conversation

@d9m0n4
Copy link
Contributor

@d9m0n4 d9m0n4 commented Feb 23, 2025

No description provided.

@vercel
Copy link

vercel bot commented Feb 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xieffect ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 7:35pm

newScale = Math.max(0.5, Math.min(newScale, 3));
const delta = e.evt.deltaY;

const baseScaleStep = 0.01;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Как будто константы можно вне компонента выносить

let newScale = oldScale;

if (direction === 'in') {
if (currentIndex < uniqueZoomLevels.length - 1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А нельзя ли объединить этот if с if выше?

@unknownproperty unknownproperty merged commit d99253d into staging Mar 7, 2025
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants