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

fix(editor): Zoom in/out on canvas the same amount on scroll/gesture #7602

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Nov 3, 2023

Github issue / Community forum post (link here to close automatically):
https://community.n8n.io/t/ctrl-mousewheel-zoom-jumps-out-possible-to-avoid/31952

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Nov 3, 2023
tomi
tomi previously approved these changes Nov 3, 2023
Copy link
Contributor

@tomi tomi left a comment

Choose a reason for hiding this comment

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

Zooming on trackpad feels sooo smooooth now 😍 Zooming with ⌥ + mouse wheel feels a bit clunky still (like there's some big acceleration), but this is already a big improvement 👏

Copy link

cypress bot commented Nov 3, 2023

Passing run #2723 ↗︎

0 269 0 0 Flakiness 0

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project: n8n Commit: e176ba91cf
Status: Passed Duration: 08:43 💡
Started: Nov 3, 2023 12:51 PM Ended: Nov 3, 2023 1:00 PM

Review all test suite changes for PR #7602 ↗︎

Copy link
Contributor

github-actions bot commented Nov 3, 2023

✅ All Cypress E2E specs passed

@elsmr
Copy link
Member Author

elsmr commented Nov 3, 2023

@tomi You're right, scroll zooming still accelerates a lot. My last commit improves it 😄 it's tricky to fix without making pinch-to-zoom too slow. I think my last commit is a good balance, let me know what you think!

@elsmr elsmr changed the title Zoom in/out on canvas the same amount on scroll/gesture fix(editor): Zoom in/out on canvas the same amount on scroll/gesture Nov 3, 2023
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (9c55702) 33.86% compared to head (e176ba9) 33.86%.
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7602   +/-   ##
=======================================
  Coverage   33.86%   33.86%           
=======================================
  Files        3410     3408    -2     
  Lines      208711   208628   -83     
  Branches    22574    22558   -16     
=======================================
- Hits        70683    70656   -27     
+ Misses     136873   136817   -56     
  Partials     1155     1155           
Files Coverage Δ
packages/editor-ui/src/utils/canvasUtils.ts 41.22% <58.33%> (+0.42%) ⬆️

... and 15 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tomi
Copy link
Contributor

tomi commented Nov 3, 2023

@tomi You're right, scroll zooming still accelerates a lot. My last commit improves it 😄 it's tricky to fix without making pinch-to-zoom too slow. I think my last commit is a good balance, let me know what you think!

Feels much better now. Thanks for addressing it 🙌

Copy link
Contributor

github-actions bot commented Nov 3, 2023

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit c92402a into master Nov 3, 2023
57 of 58 checks passed
@elsmr elsmr deleted the pay-924-even-zoom branch November 3, 2023 13:09
MiloradFilipovic added a commit that referenced this pull request Nov 3, 2023
* master:
  feat(editor): Fix some UTM tags (no-changelog) (#7583)
  feat(editor): Improve performance by importing routes dynamically and add route guards (no-changelog) (#7567)
  fix(editor): Zoom in/out on canvas the same amount on scroll/gesture (#7602)
krynble pushed a commit that referenced this pull request Nov 7, 2023
@github-actions github-actions bot mentioned this pull request Nov 7, 2023
krynble added a commit that referenced this pull request Nov 7, 2023
##
[1.15.2](https://github.com/n8n-io/n8n/compare/n8n@1.15.1...n8n@1.15.2)
(2023-11-07)


### Bug Fixes

* **core:** Decrease reset password token expire time
([#7598](#7598))
([44664d2](44664d2))
* **editor:** Allow overriding theme from query params
([#7591](#7591))
([1362585](1362585))
* **editor:** Fix issue that frontend breaks with unkown nodes
([#7596](#7596))
([dd7b7d1](dd7b7d1))
* **editor:** Hide not supported node options
([#7597](#7597))
([658cacc](658cacc))
* **editor:** Remove unknown credentials on pasting workflow
([#7582](#7582))
([0768271](0768271))
* **editor:** Reset canvas zoom before workspace reset in node view
([#7625](#7625))
([44460f9](44460f9))
* **editor:** Zoom in/out on canvas the same amount on scroll/gesture
([#7602](#7602))
([be6fbf2](be6fbf2))

Co-authored-by: krynble <krynble@users.noreply.github.com>
@janober
Copy link
Member

janober commented Nov 7, 2023

Got released with n8n@1.15.2

@github-actions github-actions bot mentioned this pull request Nov 8, 2023
ivov added a commit that referenced this pull request Nov 8, 2023
#
[1.16.0](https://github.com/n8n-io/n8n/compare/n8n@1.15.1...n8n@1.16.0)
(2023-11-08)


### Bug Fixes

* **core:** Comply with custom default for workflow saving settings
([#7634](#7634))
([48c068f](48c068f))
* **core:** Decrease reset password token expire time
([#7598](#7598))
([2aa7f63](2aa7f63))
* **core:** Ensure `init` before checking leader or follower in
multi-main scenario ([#7621](#7621))
([a994ba5](a994ba5))
* **core:** Ensure pruning starts only after migrations have completed
([#7626](#7626))
([f748de9](f748de9))
* **core:** Fix accessor error when running partial execution
([#7618](#7618))
([26361df](26361df)),
closes [#6229](#6229)
* **core:** Make password-reset urls valid only for single-use
([#7622](#7622))
([6031424](6031424))
* **Crypto Node:** Fix issue with value not appearing for Sign action
([#7619](#7619))
([5df583f](5df583f))
* **editor:** Allow overriding theme from query params
([#7591](#7591))
([2854a0c](2854a0c))
* **editor:** Fix issue that frontend breaks with unkown nodes
([#7596](#7596))
([db56a9e](db56a9e))
* **editor:** Fix local storage flags defaulting to undefined string
([#7603](#7603))
([151e60f](151e60f))
* **editor:** Fix workflow history prune time limit (getting hours
instead of days) ([#7644](#7644))
([3d5a485](3d5a485))
* **editor:** Hide not supported node options
([#7597](#7597))
([b532a7b](b532a7b))
* **editor:** Remove unknown credentials on pasting workflow
([#7582](#7582))
([d633753](d633753))
* **editor:** Reset canvas zoom before workspace reset in node view
([#7625](#7625))
([78b84af](78b84af))
* **editor:** Zoom in/out on canvas the same amount on scroll/gesture
([#7602](#7602))
([c92402a](c92402a))
* **Facebook Lead Ads Trigger Node:** Fix issue with missing scope for
business management ([#7616](#7616))
([32b85ba](32b85ba))


### Features

* **core:** Add the node version to telemetry in node_graph_string
([#7449](#7449))
([59dc36a](59dc36a))
* **core:** Coordinate workflow activation in multiple main scenario in
internal API ([#7566](#7566))
([c857e42](c857e42))
* **core:** Initial support for two-way communication over websockets
([#7570](#7570))
([ac87701](ac87701))
* **core:** Log executed migrations with info level
([#7586](#7586))
([7dac9ab](7dac9ab))
* **core:** Rate limit forgot password endpoint
([#7604](#7604))
([5790e25](5790e25))
* **LinkedIn Node:** Add support for Article thumbnails
([#7489](#7489))
([e6d3d1a](e6d3d1a))
* **NocoDB Node:** Add new data apis and workspace support
([#7329](#7329))
([da2d2a8](da2d2a8))

Co-authored-by: ivov <ivov@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants