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

How to prevent Drag on middle mouse (wheel) down? #674

Closed
Crazy-Ivan opened this issue Jun 6, 2022 · 3 comments
Closed

How to prevent Drag on middle mouse (wheel) down? #674

Crazy-Ivan opened this issue Jun 6, 2022 · 3 comments
Labels
bug Something isn't working complete
Milestone

Comments

@Crazy-Ivan
Copy link

Environments

  • Framework name: React
  • Framework version: 16.13.1
  • Moveable Component version: 0.30.3
  • Testable Address(optional):

Description

Hello,

I would like to drag elements only when the left mouse button is down. Currently, dragging is fired on the left mouse button down and the middle one (wheel). I tried to find options to define it but it looks like there is no such thing. In one post I found info that there should be a function stop() attached to event onDragStart but it seems to not be true. I Can't find such function in the object and in the documentation. Does anyone have an idea how this simple thing could be nicely achieved?

@daybrush daybrush added the bug Something isn't working label Jun 9, 2022
@daybrush daybrush added this to the 0.30.0 milestone Jun 9, 2022
@daybrush
Copy link
Owner

daybrush commented Jun 9, 2022

@Crazy-Ivan

I'll fix it. Thank you :)

daybrush added a commit that referenced this issue Jun 9, 2022
@daybrush
Copy link
Owner

daybrush commented Jun 9, 2022

@Crazy-Ivan

  • lit-moveable 0.7.0
  • moveable 0.30.0
  • preact-moveable 0.32.0
  • react-compat-moveable 0.18.0
  • react-moveable 0.33.0
  • svelte-moveable 0.22.0
  • vue-moveable 2.0.0-beta.21
  • vue3-moveable 0.5.0
  • ngx-moveable 0.27.0

moveable's new version is released. Try it again.

@Crazy-Ivan
Copy link
Author

Thank you! 👍 🥇

@daybrush daybrush closed this as completed Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete
Projects
None yet
Development

No branches or pull requests

2 participants