Skip to content

Conversation

draedful
Copy link
Collaborator

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

const nextX = this.state.x + (dxInNextScale - dx) * normalizedScale;
const nextY = this.state.y + (dyInNextScale - dy) * normalizedScale;

console.log("apply zoom", nextX, nextY, normalizedScale);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some consoles here))

* @returns {void}
*/
function move(emitter: Emitter, event: MouseEvent | TouchEvent): void {
// Prevent default behavior for touch events to avoid scrolling
Copy link
Collaborator

Choose a reason for hiding this comment

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

As I understand it, this check is done on line 62.

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.

3 participants