Moveable: Feature request: Support an option for dragging using .moveable-line

Created on 8 Oct 2020  路  8Comments  路  Source: daybrush/moveable

Environments

  • Framework name: react
  • Framework version: 16.x
  • Moveable Component version: [email protected]
  • Testable Address(optional):

Description

Requesting support for an option to drag the target using the .moveable-line divs similar to how dragArea works.

React complete question

Most helpful comment

@stevezhu

  • moveable 0.20.0
  • react-moveable 0.23.0
  • preact-moveable 0.22.0
  • ngx-moveable 0.16.0
  • svelte-moveable 0.11.0

moveable's new version is released.

use edgeDraggable = true.

All 8 comments

@stevezhu

Will you resize or scale with a moveable-line? Then try using the edge option.

Ah yeah this option is useful as well, but we wanted to have the draggable functionality when dragging the lines. An example use case is when editing text, we want to be able to move the target as well.

@stevezhu

Ah, I will consider it. Maybe the name I'm going to add is 驶edgeDraggable`?

Sounds good thanks!

@stevezhu

  • moveable 0.20.0
  • react-moveable 0.23.0
  • preact-moveable 0.22.0
  • ngx-moveable 0.16.0
  • svelte-moveable 0.11.0

moveable's new version is released.

use edgeDraggable = true.

@daybrush This prop doesn't seem to be working, am I doing anything wrong here? https://codesandbox.io/s/jolly-mountain-0q3z7

@stevezhu

  • moveable 0.21.0
  • react-moveable 0.24.0
  • preact-moveable 0.23.0
  • ngx-moveable 0.17.0
  • svelte-moveable 0.12.0

moveable's new version is released.

Check it again.

Thanks! Seems good now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

monsterooo picture monsterooo  路  4Comments

wassgha picture wassgha  路  6Comments

MiiZZo picture MiiZZo  路  3Comments

scottsquirespix picture scottsquirespix  路  5Comments

probil picture probil  路  4Comments