How can I use CTRL + wheel to zoom in and out rather than just the wheel, and how can I make the wheel simply drag the screen instead of zooming in and out? #92
-
|
Hello everyone, I just wanted to modify a few general Canvas behaviors to resemble those found on Miro:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Hello, Thank you for your interest in Foblex Flow. To achieve the behavior you described, you can create your own custom zoom directive. By writing a custom directive, you’ll be able to: • Override the mouse wheel action to pan the Canvas instead of zooming. • Customize the left mouse click to select components instead of moving the Canvas. • Add logic for the “Space + Left Mouse Click” combination to enable dragging and change the cursor. The library is flexible enough to accommodate these modifications, so most of your requirements can be fulfilled with this approach. |
Beta Was this translation helpful? Give feedback.
-
|
Hi again! Just a quick update 🙂 As of version 17.1.1, you no longer need to override fZoom or fDraggable to customize canvas interactions. A new custom event trigger system has been introduced, which allows you to configure wheel behavior, left click, keyboard combinations (like Space + Click), and more — all without writing custom directives. Here’s a live example of how to use it: Let me know if you have any questions! |
Beta Was this translation helpful? Give feedback.
Hi again! Just a quick update 🙂
As of version 17.1.1, you no longer need to override fZoom or fDraggable to customize canvas interactions.
A new custom event trigger system has been introduced, which allows you to configure wheel behavior, left click, keyboard combinations (like Space + Click), and more — all without writing custom directives.
Here’s a live example of how to use it:
🔗 https://flow.foblex.com/examples/custom-event-triggers
Let me know if you have any questions!