bcakmakoglu / vue-flow

A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan 🔎, additional components like a Minimap 🗺 and utilities to interact with state and graph.
https://vueflow.dev/
MIT License
3.74k stars 242 forks source link

fix: stop default behavior when using the middle mouse button on canvas #1558

Closed eensander closed 1 month ago

eensander commented 1 month ago

🐛 Fixes

This pull request proposes a solution to issue #1557, by preventing the default behavior when using the middle mouse button (eventButton === 1) on the viewport.

changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: 250b5c6e32a1110bf4bdb720757611412bae86e6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 month ago

@eensander is attempting to deploy a commit to the Burak Cakmakoglu's projects Team on Vercel.

A member of the Team first needs to authorize it.

bcakmakoglu commented 1 month ago

This is already configurable through the pan-on-drag prop as mentioned in the issue. 😅

Closing this.